CPM.cmake
CPM.cmake copied to clipboard
CPM_DONT_UPDATE_MODULE_PATH has no effect when using CMake 3.24
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