Commit d1152980 by Maarten L. Hekkelman

findfilesystem, unit test platform agnostic

parent 7be15ced
...@@ -58,9 +58,9 @@ if(_found) ...@@ -58,9 +58,9 @@ if(_found)
if(CXX_FILESYSTEM_NO_LINK_NEEDED) if(CXX_FILESYSTEM_NO_LINK_NEEDED)
# Nothing to add... # Nothing to add...
elseif(CXX_FILESYSTEM_STDCPPFS_NEEDED) elseif(CXX_FILESYSTEM_STDCPPFS_NEEDED)
set_property(TARGET std::filesystem APPEND PROPERTY INTERFACE_LINK_LIBRARIES -lstdc++fs) set_target_properties(std::filesystem PROPERTIES IMPORTED_LIBNAME stdc++fs)
elseif(CXX_FILESYSTEM_CPPFS_NEEDED) elseif(CXX_FILESYSTEM_CPPFS_NEEDED)
set_property(TARGET std::filesystem APPEND PROPERTY INTERFACE_LINK_LIBRARIES -lc++fs) set_target_properties(std::filesystem PROPERTIES IMPORTED_LIBNAME c++fs)
endif() endif()
endif() endif()
...@@ -71,3 +71,4 @@ set(Filesystem_FOUND ${_found} CACHE BOOL "TRUE if we can run a program using st ...@@ -71,3 +71,4 @@ set(Filesystem_FOUND ${_found} CACHE BOOL "TRUE if we can run a program using st
if(Filesystem_FIND_REQUIRED AND NOT Filesystem_FOUND) if(Filesystem_FIND_REQUIRED AND NOT Filesystem_FOUND)
message(FATAL_ERROR "Cannot run simple program using std::filesystem") message(FATAL_ERROR "Cannot run simple program using std::filesystem")
endif() endif()
...@@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(ut_dssp) ...@@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(ut_dssp)
writeDSSP(structure, dssp, test); writeDSSP(structure, dssp, test);
std::ifstream reference("1cbs.dssp", std::ios::binary); std::ifstream reference("1cbs.dssp");
BOOST_CHECK(reference.is_open()); BOOST_CHECK(reference.is_open());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment