From: ibs Date: Sat, 21 Nov 2015 10:46:04 +0000 (+0300) Subject: 0026911: Configuration, CMake - strips symbol information from the binary in release... X-Git-Tag: V7_0_0_beta~106 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=4d8eca1dce85c90c114f017f8c1c980da2ca216a;p=occt.git 0026911: Configuration, CMake - strips symbol information from the binary in release configuration if the compiler is a variant of gcc add strip flag when the compiler is a variant of gcc --- diff --git a/adm/cmake/occt_defs_flags.cmake b/adm/cmake/occt_defs_flags.cmake index 36ba85968d..609265c51b 100644 --- a/adm/cmake/occt_defs_flags.cmake +++ b/adm/cmake/occt_defs_flags.cmake @@ -98,7 +98,7 @@ if (DEFINED CMAKE_COMPILER_IS_GNUCXX OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xC endif() # Optimize size of binaries -if (NOT WIN32 AND NOT APPLE) +if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR MINGW) set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s") set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s") endif()