From a1b0408f5b52fbf4b16fcf19fe0c82eebe97dab3 Mon Sep 17 00:00:00 2001 From: Jing Dong Date: Fri, 13 May 2016 12:18:18 -0400 Subject: [PATCH] fix CMAKE_BUILD_TYPE var to cache varible in default --- cmake/GtsamBuildTypes.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/GtsamBuildTypes.cmake b/cmake/GtsamBuildTypes.cmake index 96a0f11f3..4647b51a1 100644 --- a/cmake/GtsamBuildTypes.cmake +++ b/cmake/GtsamBuildTypes.cmake @@ -6,7 +6,8 @@ list(APPEND CMAKE_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}") if(NOT CMAKE_BUILD_TYPE AND NOT MSVC AND NOT XCODE_VERSION) set(GTSAM_CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None Debug Release Timing Profiling RelWithDebInfo.") - set(CMAKE_BUILD_TYPE ${GTSAM_CMAKE_BUILD_TYPE}) + set(CMAKE_BUILD_TYPE ${GTSAM_CMAKE_BUILD_TYPE} CACHE STRING + "Choose the type of build, options are: None Debug Release Timing Profiling RelWithDebInfo." FORCE) endif() # Add option for using build type postfixes to allow installing multiple build modes