From efa787acd096693b76b74c2cdc595a29315ccde0 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 24 Oct 2011 15:09:59 -0700 Subject: 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. --- cmake/Modules/GrComponent.cmake | 1 + 1 file changed, 1 insertion(+) 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 -- cgit