We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3797097 commit 2412ad0Copy full SHA for 2412ad0
tests/CMakeLists.txt
@@ -256,7 +256,9 @@ if(Boost_FOUND)
256
endif()
257
258
# Check if we need to add -lstdc++fs or -lc++fs or nothing
259
-if(MSVC)
+if(DEFINED CMAKE_CXX_STANDARD AND CMAKE_CXX_STANDARD LESS 17)
260
+ set(STD_FS_NO_LIB_NEEDED TRUE)
261
+elseif(MSVC)
262
set(STD_FS_NO_LIB_NEEDED TRUE)
263
else()
264
file(
@@ -286,7 +288,7 @@ elseif(${STD_FS_NEEDS_CXXFS})
286
288
elseif(${STD_FS_NO_LIB_NEEDED})
287
289
set(STD_FS_LIB "")
290
- message(WARNING "Unknown compiler - not passing -lstdc++fs")
291
+ message(WARNING "Unknown C++17 compiler - not passing -lstdc++fs")
292
293
294
0 commit comments