Skip to content

Commit

Permalink
Fix bad copy paste from stratagus for CMake experimental fs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Sep 26, 2023
1 parent 04516f3 commit 0a7fd76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,14 @@ if(NOT HAS_17_FS) # Tr
set(CMAKE_REQUIRED_LIBRARIES stdc++fs)
check_cxx_source_compiles("${EXPERIMENTAL_FS_SRC}" HAS_EXP_17_FS_WITH_STDC)
if(HAS_EXP_17_FS_WITH_STDC)
set(stratagus_LIBS ${stratagus_LIBS} stdc++fs)
set(stargus_LIBS ${stargus_LIBS} stdc++fs)
set(startool_LIBS ${startool_LIBS} stdc++fs)
else()
set(CMAKE_REQUIRED_LIBRARIES c++fs)
check_cxx_source_compiles("${EXPERIMENTAL_FS_SRC}" HAS_EXP_17_FS_WITH_CLIB)
if(HAS_EXP_17_FS_WITH_CLIB)
set(stratagus_LIBS ${stratagus_LIBS} c++fs)
set(stargus_LIBS ${stargus_LIBS} c++fs)
set(startool_LIBS ${startool_LIBS} c++fs)
else()
message(FATAL_ERROR "I don't know how to compile with C++17 filesystem support on your system")
endif()
Expand Down

0 comments on commit 0a7fd76

Please sign in to comment.