Merge pull request #1296 from CraigHutchinson/patch-1

CMake: append should be used for CMAKE_MODULE_PATH
This commit is contained in:
David G Yu 2023-04-26 17:10:27 -07:00 committed by GitHub
commit 7f7528e001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,8 +121,8 @@ if (MAIN_PROJECT)
endif()
# Specify the list of directories to search for cmake modules.
set(CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake"
list(APPEND CMAKE_MODULE_PATH
"${PROJECT_SOURCE_DIR}/cmake"
)
#-------------------------------------------------------------------------------