Skip to content

Commit

Permalink
Use CMAKE_CXX_STANDARD when testing for <filesystem> support
Browse files Browse the repository at this point in the history
Suggested by @COM8

Co-authored-by: Fabian Sauter <[email protected]>
  • Loading branch information
Alex Wang and COM8 committed Nov 20, 2023
1 parent e4ab578 commit d72ebf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ else()
STD_FS_SUPPORTED
"${CMAKE_CURRENT_BINARY_DIR}/std_fs"
SOURCES "${PROJECT_SOURCE_DIR}/cmake/std_fs_support_test.cpp"
CXX_STANDARD 17
CXX_STANDARD ${CMAKE_CXX_STANDARD}
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand All @@ -73,7 +73,7 @@ else()
"${CMAKE_CURRENT_BINARY_DIR}/stdcxxfs"
SOURCES "${PROJECT_SOURCE_DIR}/cmake/std_fs_support_test.cpp"
LINK_LIBRARIES "stdc++fs"
CXX_STANDARD 17
CXX_STANDARD ${CMAKE_CXX_STANDARD}
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand All @@ -85,7 +85,7 @@ else()
"${CMAKE_CURRENT_BINARY_DIR}/cxxfs"
SOURCES "${PROJECT_SOURCE_DIR}/cmake/std_fs_support_test.cpp"
LINK_LIBRARIES "c++fs"
CXX_STANDARD 17
CXX_STANDARD ${CMAKE_CXX_STANDARD}
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand Down

0 comments on commit d72ebf1

Please sign in to comment.