diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index e0118eb6..77a7d11e 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -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() diff --git a/src/SFML/CMakeLists.txt b/src/SFML/CMakeLists.txt index 84a77059..c60bc4fc 100644 --- a/src/SFML/CMakeLists.txt +++ b/src/SFML/CMakeLists.txt @@ -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")