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:
Kai Germaschewski
2020-09-27 16:56:32 -04:00
committed by GitHub
parent 4271d5981f
commit aeef56ea85

View File

@@ -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()