cmake: append to CMAKE_MODULE_PATH instead of overwriting

This commit is contained in:
Anonymous Maarten 2022-06-17 02:58:45 +02:00 committed by Sam Lantinga
parent a193a03d81
commit 70214ed3ed

View File

@ -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)