2021-05-14 04:16:46 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-06-15 07:23:40 +08:00
|
|
|
index 352fea9..01c1695 100644
|
2021-05-14 04:16:46 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-06-15 07:23:40 +08:00
|
|
|
@@ -111,7 +111,7 @@ endif()
|
2021-05-14 04:16:46 +08:00
|
|
|
if(NOT THOR_SHARED_LIBS)
|
|
|
|
set(SFML_STATIC_LIBRARIES TRUE)
|
|
|
|
endif()
|
2023-06-15 07:23:40 +08:00
|
|
|
-find_package(SFML 2.5 COMPONENTS audio graphics window system REQUIRED)
|
|
|
|
+find_package(SFML COMPONENTS audio graphics window system CONFIG REQUIRED)
|
2021-05-14 04:16:46 +08:00
|
|
|
|
2023-06-15 07:23:40 +08:00
|
|
|
if(NOT SFML_FOUND)
|
|
|
|
set(SFML_DIR "" CACHE PATH "SFML top-level directory")
|