From: Eduardo DAVILA Date: Thu, 26 Aug 2021 07:09:30 +0000 (+0200) Subject: #3471 bug BUILD_ALL X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=870fd23c81d2fcfe6c90f7406c7c2474f226762f;p=bbtk.git #3471 bug BUILD_ALL --- diff --git a/kernel/cmake/BBTKBuildAllOption.cmake b/kernel/cmake/BBTKBuildAllOption.cmake index ce1b10f..838c1d0 100644 --- a/kernel/cmake/BBTKBuildAllOption.cmake +++ b/kernel/cmake/BBTKBuildAllOption.cmake @@ -30,24 +30,36 @@ # The -- prepended to the options ensure that it will appear as the # first option when running ccmake/CMakeSetup IF (BBTK_CORE_PACKAGE) - OPTION(--BUILD_ALL "Build all ?" OFF) + + OPTION(__BUILD_ALL "Build all ?" OFF) +#EED2021-08-26 OPTION(--BUILD_ALL "Build all ?" OFF) + #OPTION(--SET_BUILD_ALL_OFF "Build all ?" OFF) #MARK_AS_ADVANCED(--SET_BUILD_ALL_OFF) MACRO(SWITCH_ON_IF_BUILD_ALL VAR) #OPTION(--${VAR}_SET_BUILD_ALL_OFF "Build all ?" OFF) #MARK_AS_ADVANCED(--${VAR}_SET_BUILD_ALL_OFF) - IF (--BUILD_ALL) + + IF (__BUILD_ALL) +#EED2021-08-26 IF (--BUILD_ALL) + # IF (--${VAR}_SET_BUILD_ALL_OFF) # MESSAGE(ERROR "${VAR} -> Build All OFF") # SET(--BUILD_ALL OFF CACHE BOOL "Build all ?" FORCE) # SET(--${VAR}_SET_BUILD_ALL_OFF OFF CACHE BOOL "" FORCE) # ELSE (--${VAR}_SET_BUILD_ALL_OFF) - SET(${VAR} ON CACHE BOOL "Forced to ON by --BUILD_ALL" FORCE) + + SET(${VAR} ON CACHE BOOL "Forced to ON by __BUILD_ALL" FORCE) +#EED2021-08-26 SET(${VAR} ON CACHE BOOL "Forced to ON by --BUILD_ALL" FORCE) + # SET(--${VAR}_SET_BUILD_ALL_OFF ON CACHE BOOL "" FORCE) # MESSAGE(ERROR "Build All -> ${VAR}") # ENDIF (--${VAR}_SET_BUILD_ALL_OFF) - ENDIF(--BUILD_ALL) + + ENDIF(__BUILD_ALL) +#EED2021-08-26 ENDIF(--BUILD_ALL) + ENDMACRO(SWITCH_ON_IF_BUILD_ALL) ELSE (BBTK_CORE_PACKAGE) MACRO(SWITCH_ON_IF_BUILD_ALL VAR)