Ver código fonte

Prevent multiple inclusions of CTKExports.cmake

Sascha Zelzer 14 anos atrás
pai
commit
f88d8ca6be
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      CTKConfig.cmake.in

+ 4 - 1
CTKConfig.cmake.in

@@ -41,7 +41,10 @@
 
 
 # Import CTK targets
-INCLUDE("@CTK_SUPERBUILD_BINARY_DIR@/CTKExports.cmake")
+IF(NOT CTK_EXPORTS_INCLUDED)
+  INCLUDE("@CTK_SUPERBUILD_BINARY_DIR@/CTKExports.cmake")
+  SET(CTK_EXPORTS_INCLUDED 1)
+ENDIF()
 
 # Include CTK macros
 INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroParseArguments.cmake")