summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfruzitent <[email protected]>2024-06-07 11:22:24 +0300
committerGitHub <[email protected]>2024-06-07 10:22:24 +0200
commit7b92b5bde77f857dbf25a2e0aaacb79f592c18b2 (patch)
tree89a7cccf7254146e4b7a0a9a0c35675ce0f6e2ba
parent3948656d84da2e02ba4c2fda80ac813f6c81813e (diff)
downloadraylib-7b92b5bde77f857dbf25a2e0aaacb79f592c18b2.tar.gz
raylib-7b92b5bde77f857dbf25a2e0aaacb79f592c18b2.zip
fix: infer CMAKE_MODULE_PATH in super-build (#4042)
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 57719691..a5e3408c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,7 +20,7 @@ cmake_policy(SET CMP0063 NEW)
# Directory for easier includes
# Anywhere you see include(...) you can check <root>/cmake for that file
-set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# RAYLIB_IS_MAIN determines whether the project is being used from root
# or if it is added as a dependency (through add_subdirectory for example).
@@ -51,7 +51,7 @@ add_subdirectory(src raylib)
# Uninstall target
if(NOT TARGET uninstall)
configure_file(
- "${CMAKE_MODULE_PATH}/Uninstall.cmake"
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Uninstall.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)