in generated CMakeLists.txt include modules with explicit path
do not modify CMAKE_MODULE_PATH we have seen that this can lead to trouble in combination with FetchContent where the fetched project can pick up wrong modules since CMAKE_MODULE_PATH can contain paths from the parent project
This commit is contained in:
@ -123,8 +123,6 @@ Excellent. Here is the generated ``CMakeLists.txt``::
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
endif()
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake/downloaded)
|
||||
|
||||
This is the very bare minimum. Every Autocmake project will have at least these
|
||||
settings.
|
||||
|
||||
|
Reference in New Issue
Block a user