Skip to content
Permalink
Browse files

Lower optimization for qgsexpression_texts.cpp for release builds on Mac

- Only applies when using clang compiler
  • Loading branch information
dakcarto committed Oct 1, 2015
1 parent db4a9a3 commit 1c307e8e877110286028014c359b2a67933102bc
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/CMakeLists.txt
@@ -523,6 +523,9 @@ IF(MSVC)
SET_SOURCE_FILES_PROPERTIES(${QGIS_CORE_MOC_SRCS} PROPERTIES COMPILE_FLAGS "/wd4512 /wd4996" )
ELSE(MSVC)
SET_SOURCE_FILES_PROPERTIES(${QGIS_CORE_MOC_SRCS} PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations" )
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND (CMAKE_BUILD_TYPE MATCHES Release OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo))
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/qgsexpression_texts.cpp PROPERTIES COMPILE_FLAGS "-O1")
ENDIF ()
ENDIF(MSVC)

# install headers

0 comments on commit 1c307e8

Please sign in to comment.
You can’t perform that action at this time.