Work on CI integration.

This commit is contained in:
Steffen Schuemann 2019-04-20 11:14:50 +02:00
parent 626521b713
commit 42f9040b81

View File

@ -23,7 +23,12 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND (CMAKE_CXX_COMPILER_VERSION
add_executable(std_filesystem_test filesystem_test.cpp catch.hpp)
set_property(TARGET std_filesystem_test PROPERTY CXX_STANDARD 17)
target_compile_definitions(std_filesystem_test PRIVATE USE_STD_FS)
target_link_libraries(std_filesystem_test -lc++fs)
if(APPLE)
target_link_libraries(std_filesystem_test -lc++fs)
else()
add_compile_options("-stdlib=libc++")
target_link_libraries(std_filesystem_test -lc++fs)
endif()
endif()
if (CMAKE_COMPILER_IS_GNUCXX AND (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 8.0 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0))
add_executable(std_filesystem_test filesystem_test.cpp catch.hpp)