Skip to content

Commit

Permalink
Don't override CMAKE_MODULE_PATH
Browse files Browse the repository at this point in the history
The Conan package for SFML has to fix this so apparently it's a
real world problem.
  • Loading branch information
ChrisThrasher committed Jun 22, 2023
1 parent 11b7374 commit 242ceb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/Macros.cmake
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/SFML/CMakeLists.txt
Expand Up @@ -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")
Expand Down

0 comments on commit 242ceb4

Please sign in to comment.