From bcd823d98a9b2e024b6ab071b75ad3161452bf80 Mon Sep 17 00:00:00 2001 From: Max Smolens Date: Fri, 14 Jul 2017 16:18:22 -0400 Subject: [PATCH] COMP: Fix USE_BRAINSABC default when C++11 is enabled This commit fixes the cmake_dependent_option logic for USE_BRAINSABC. USE_BRAINSABC should be enabled by default when C++11 is enabled and its dependent options USE_AutoWorkup and USE_ReferenceAtlas are enabled. Previously, the cmake_dependent_option logic erroneously enabled USE_BRAINSABC if its dependent options were false, thus causing the build to fail. --- Common.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common.cmake b/Common.cmake index 919c69345..9294ae9c2 100644 --- a/Common.cmake +++ b/Common.cmake @@ -93,7 +93,7 @@ cmake_dependent_option(USE_BRAINSConstellationDetectorGUI "Build BRAINSConstella mark_as_superbuild(USE_BRAINSConstellationDetectorGUI) if( USING_MODERN_CXX ) - cmake_dependent_option(USE_BRAINSABC "Build BRAINSABC" OFF "USE_AutoWorkup;USE_ReferenceAtlas" ON) + cmake_dependent_option(USE_BRAINSABC "Build BRAINSABC" ON "USE_AutoWorkup;USE_ReferenceAtlas" OFF) else() cmake_dependent_option(USE_BRAINSABC "Build BRAINSABC" OFF "USE_AutoWorkup;USE_ReferenceAtlas" OFF) endif()