mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2026-01-18 17:21:33 +01:00
fix: do not generate module files with DOWNLOAD_ONLY (#654)
Co-authored-by: Avus <48911667+Avus@users.noreply.github.com>
This commit is contained in:
@@ -867,7 +867,9 @@ function(CPMAddPackage)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
cpm_create_module_file(${CPM_ARGS_NAME} "CPMAddPackage(\"${ARGN}\")")
|
||||
if(NOT "${DOWNLOAD_ONLY}")
|
||||
cpm_create_module_file(${CPM_ARGS_NAME} "CPMAddPackage(\"${ARGN}\")")
|
||||
endif()
|
||||
|
||||
if(CPM_PACKAGE_LOCK_ENABLED)
|
||||
if((CPM_ARGS_VERSION AND NOT CPM_ARGS_SOURCE_DIR) OR CPM_INCLUDE_ALL_IN_PACKAGE_LOCK)
|
||||
|
||||
Reference in New Issue
Block a user