CPM.cmake icon indicating copy to clipboard operation
CPM.cmake copied to clipboard

CPM_DONT_UPDATE_MODULE_PATH has no effect when using CMake 3.24

Open robertmaynard opened this issue 11 months ago • 0 comments

The CMAKE_FIND_PACKAGE_REDIRECTS_DIR is always defined by CMake 3.24+ so that results in CPM_MODULE_PATH always being an empty value since https://github.com/cpm-cmake/CPM.cmake/pull/604/.

Which means that the file(WRITE ${CPM_MODULE_PATH}/Find${Name}.cmake won't work unless the CMake process has root permissions

robertmaynard avatar Jan 27 '25 20:01 robertmaynard