summaryrefslogtreecommitdiff
path: root/cmake/Modules/GrComponent.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/GrComponent.cmake')
-rw-r--r--cmake/Modules/GrComponent.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/Modules/GrComponent.cmake b/cmake/Modules/GrComponent.cmake
index 0b4326a725..8a94e219a4 100644
--- a/cmake/Modules/GrComponent.cmake
+++ b/cmake/Modules/GrComponent.cmake
@@ -17,8 +17,10 @@
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-IF(NOT DEFINED INCLUDED_GR_COMPONENT_CMAKE)
-SET(INCLUDED_GR_COMPONENT_CMAKE TRUE)
+IF(DEFINED __INCLUDED_GR_COMPONENT_CMAKE)
+ RETURN()
+ENDIF()
+SET(__INCLUDED_GR_COMPONENT_CMAKE TRUE)
SET(_gr_enabled_components "" CACHE INTERNAL "" FORCE)
SET(_gr_disabled_components "" CACHE INTERNAL "" FORCE)
@@ -78,5 +80,3 @@ FUNCTION(GR_PRINT_COMPONENT_SUMMARY)
MESSAGE(STATUS "")
ENDFUNCTION(GR_PRINT_COMPONENT_SUMMARY)
-
-ENDIF(NOT DEFINED INCLUDED_GR_COMPONENT_CMAKE)