since we still support g++-7, where filesystem is marked experimental, we introduce a wrapper header and expose the namespace to use as Opm::filesystem. for gcc we unconditionally link with libstdc++fs in the python bindings. the setup.py stuff links as c code, not c++ code, so it is not automatically added on any gcc version. this might prove unportable later.
20 lines
576 B
CMake
20 lines
576 B
CMake
# -*- mode: cmake; tab-width: 2; indent-tabs-mode: t; truncate-lines: t; compile-command: "cmake -Wdev" -*-
|
|
# vim: set filetype=cmake autoindent tabstop=2 shiftwidth=2 noexpandtab softtabstop=2 nowrap:
|
|
|
|
# defines that must be present in config.h for our headers
|
|
set (opm-common_CONFIG_VAR
|
|
"HAS_ATTRIBUTE_UNUSED")
|
|
|
|
# dependencies
|
|
set (opm-common_DEPS
|
|
# compile with C99 support if available
|
|
"C99"
|
|
)
|
|
|
|
list(APPEND opm-common_DEPS
|
|
# various runtime library enhancements
|
|
"Boost 1.44.0 COMPONENTS system unit_test_framework REQUIRED"
|
|
)
|
|
|
|
find_package_deps(opm-common)
|