Commit 70214ed3edba941cc0c0aadf0f435dc36fd29d08

Anonymous Maarten 2022-06-17T02:58:45

cmake: append to CMAKE_MODULE_PATH instead of overwriting

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 30a224c..59ec6bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,7 +68,8 @@ include(CMakeDependentOption)
 include(CMakePushCheckState)
 include(FindPkgConfig)
 include(GNUInstallDirs)
-set(CMAKE_MODULE_PATH "${SDL2_SOURCE_DIR}/cmake")
+
+list(APPEND CMAKE_MODULE_PATH "${SDL2_SOURCE_DIR}/cmake")
 include(${SDL2_SOURCE_DIR}/cmake/macros.cmake)
 include(${SDL2_SOURCE_DIR}/cmake/sdlchecks.cmake)