mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-18 07:07:47 -05:00
fix passing options when using CPM_<pkg>_SOURCE (#155)
When I used CPM_<pkg>_SOURCE to point to a locally modified copy, the options ended up not being passed on. I think they should be, so this patch does so.
This commit is contained in:
committed by
GitHub
parent
4271d5981f
commit
aeef56ea85
@@ -252,6 +252,7 @@ function(CPMAddPackage)
|
||||
NAME ${CPM_ARGS_NAME}
|
||||
SOURCE_DIR ${PACKAGE_SOURCE}
|
||||
FORCE True
|
||||
OPTIONS ${CPM_ARGS_OPTIONS}
|
||||
)
|
||||
cpm_export_variables(${CPM_ARGS_NAME})
|
||||
return()
|
||||
|
||||
Reference in New Issue
Block a user