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:
Radovan Bast
2019-01-23 17:18:24 +01:00
parent 30e231950b
commit 0e63ae446f
2 changed files with 4 additions and 16 deletions

View File

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