Use SFML_ROOT to find SFML installation

This is line with modern CMake convention where -D<PackageName>_ROOT
is used to locate a given package's installation.

https://cmake.org/cmake/help/latest/variable/PackageName_ROOT.html#variable:%3CPackageName%3E_ROOT
This commit is contained in:
Chris Thrasher committed 2024-09-02 21:03:54 -06:00
1 parent f9e67732e2
commit 6035a5fa5a
6 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -371,7 +371,7 @@ build_csfml () # $1: 'clang' => clang & libc++
-D "CMAKE_OSX_DEPLOYMENT_TARGET:STRING=$target" \
-D "CMAKE_OSX_SYSROOT:STRING=$sdk" \
-D "BUILD_DOC:BOOL=$doc" \
-D "SFML_DIR:PATH=$sfml_package1070/Frameworks/SFML.framework/Versions/$gittag/Resources/CMake" \
-D "SFML_ROOT:PATH=$sfml_package1070/Frameworks/SFML.framework/Versions/$gittag/Resources/CMake" \
"$codedir"
assert $? "CMake failed"