From daa96b38bc58609370a437ee6570f25e596bc3fe Mon Sep 17 00:00:00 2001 From: Yuanming Hu Date: Tue, 19 May 2020 10:02:17 -0400 Subject: [PATCH] [misc] Remove debug info in release mode --- CMakeLists.txt | 2 +- cmake/TaichiCXXFlags.cmake | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index becb0f65582ce..1bf5b2ef124fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,7 @@ FILE(WRITE ${CMAKE_CURRENT_LIST_DIR}/docs/version ) if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) diff --git a/cmake/TaichiCXXFlags.cmake b/cmake/TaichiCXXFlags.cmake index 69c76dda6a861..4f5c1eeae1bff 100644 --- a/cmake/TaichiCXXFlags.cmake +++ b/cmake/TaichiCXXFlags.cmake @@ -64,7 +64,3 @@ if (TI_USE_MPI) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTI_USE_MPI") message("Using MPI") endif () - -if (NOT WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") -endif()