summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJosh Blum2011-10-24 15:09:59 -0700
committerJosh Blum2011-10-25 10:03:37 -0700
commitefa787acd096693b76b74c2cdc595a29315ccde0 (patch)
treec739efd6386c5fa2ad86ea12fc8f8602f19680c4 /cmake
parent07378363172b0478a14ccac10fa1a0c1446fcfe6 (diff)
downloadgnuradio-efa787acd096693b76b74c2cdc595a29315ccde0.tar.gz
gnuradio-efa787acd096693b76b74c2cdc595a29315ccde0.tar.bz2
gnuradio-efa787acd096693b76b74c2cdc595a29315ccde0.zip
cmake: set the enable variable to have parent scope
Basically, this is a bug fix because the caller needs to have the var changed from the user provided value.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/GrComponent.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Modules/GrComponent.cmake b/cmake/Modules/GrComponent.cmake
index d45b8003c..708f035ae 100644
--- a/cmake/Modules/GrComponent.cmake
+++ b/cmake/Modules/GrComponent.cmake
@@ -68,6 +68,7 @@ function(GR_REGISTER_COMPONENT name var)
#setup the dependent option for this component
CMAKE_DEPENDENT_OPTION(${var} "enable ${name} support" ${ENABLE_DEFAULT} "${comp_deps}" OFF)
+ set(${var} "${${var}}" PARENT_SCOPE)
set(${var}_cached "${${var}}" CACHE INTERNAL "" FORCE)
#force was specified, but the dependencies were not met