mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-24 13:18:07 -05:00
use CPM_LOCAL_PACKAGES_ONLY again (#29)
This commit is contained in:
@@ -69,6 +69,10 @@ function(CPMAddPackage)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(${CPM_LOCAL_PACKAGES_ONLY})
|
||||||
|
message(SEND_ERROR "CPM: ${CPM_ARGS_NAME} not found via findpackage(${CPM_ARGS_NAME} ${CPM_ARGS_VERSION})")
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT CPM_ARGS_VERSION)
|
if (NOT CPM_ARGS_VERSION)
|
||||||
set(CPM_ARGS_VERSION 0)
|
set(CPM_ARGS_VERSION 0)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user