From 4d8eca1dce85c90c114f017f8c1c980da2ca216a Mon Sep 17 00:00:00 2001 From: ibs Date: Sat, 21 Nov 2015 13:46:04 +0300 Subject: [PATCH] 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 --- adm/cmake/occt_defs_flags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()