CMake: append should be used for CMAKE_MODULE_PATH

- Additionally hardened paths by using PROJECT_SOURCE_DIR
This commit is contained in:
Craig Hutchinson 2023-02-28 14:41:37 +00:00 committed by GitHub
parent 8ffa2b6566
commit 360abbe5bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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