Don't override CMAKE_MODULE_PATH

The Conan package for SFML has to fix this so apparently it's a
real world problem.
This commit is contained in:
Chris Thrasher 2023-06-22 14:33:41 -06:00
parent e9e25d52bc
commit 1f23f7818e
2 changed files with 2 additions and 2 deletions

View File

@ -384,7 +384,7 @@ function(sfml_find_package)
message(FATAL_ERROR "Unknown arguments when calling sfml_import_library: ${THIS_UNPARSED_ARGUMENTS}")
endif()
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/")
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/")
if (SFML_OS_IOS)
find_host_package(${target} REQUIRED)
else()

View File

@ -40,7 +40,7 @@ elseif(SFML_OS_ANDROID)
endif()
# define the path of our additional CMake modules
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/")
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/")
# set the output directory for SFML libraries
set(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib")