From 0a7fd768c0d648b779f032eaf6af9c2c5d3bc442 Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Tue, 26 Sep 2023 18:21:49 +0200 Subject: [PATCH] Fix bad copy paste from stratagus for CMake experimental fs. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d251756b..2043ac3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()