From 70214ed3edba941cc0c0aadf0f435dc36fd29d08 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 17 Jun 2022 02:58:45 +0200 Subject: [PATCH] cmake: append to CMAKE_MODULE_PATH instead of overwriting --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30a224ca3..59ec6bfb8 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)