From 5b60a4311ed5fadf6eba47cbf63dff5501c99b58 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Sun, 22 Mar 2020 02:12:39 +0000 Subject: travis --- CMakeLists.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index cd6eeca6..c2899441 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,9 +175,16 @@ all_link_libraries(PUBLIC quickcpplib::hl outcome::hl Threads::Threads $<$ that just works without any extra effort? # We have to check if it runs, as binaries may link, but fail to run due to missing symbols -check_cxx_source_runs(" +check_cxx_source_linkage(" #include int main() { try { return std::filesystem::path(\"hi\").empty(); } catch(std::filesystem::filesystem_error) { return 1; } @@ -243,13 +250,13 @@ int main() { function(check_stl_filesystem_link_flags) indented_message(STATUS "NOTE: Using STL link flags '${ARGN}'") set(CMAKE_REQUIRED_LIBRARIES ${ARGN}) - check_cxx_source_runs(" + check_cxx_source_linkage(" #include int main() { try { return std::filesystem::path(\"hi\").empty(); } catch(std::filesystem::filesystem_error) { return 1; } } " CXX_HAS_CXX_FILESYSTEM_AFTER_FLAGS) - check_cxx_source_runs(" + check_cxx_source_linkage(" #include int main() { try { return std::experimental::filesystem::path(\"hi\").empty(); } catch(std::experimental::filesystem::filesystem_error) { return 1; } -- cgit v1.2.3