vcpkg/ports/thor/fix-dependency-sfml.patch
Billy O'Neal ef153db9bc
[thor] Update to current master (#32001)
This is necessary to build on Ubuntu 22.04 because it includes d5e641d86b
2023-06-14 16:23:40 -07:00

14 lines
442 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 352fea9..01c1695 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,7 +111,7 @@ endif()
if(NOT THOR_SHARED_LIBS)
set(SFML_STATIC_LIBRARIES TRUE)
endif()
-find_package(SFML 2.5 COMPONENTS audio graphics window system REQUIRED)
+find_package(SFML COMPONENTS audio graphics window system CONFIG REQUIRED)
if(NOT SFML_FOUND)
set(SFML_DIR "" CACHE PATH "SFML top-level directory")