Skip to content

Commit

Permalink
Lower optimization for qgsexpression_texts.cpp for release builds on Mac
Browse files Browse the repository at this point in the history
- Only applies when using clang compiler
  • Loading branch information
dakcarto committed Oct 1, 2015
1 parent db4a9a3 commit 1c307e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/CMakeLists.txt
Expand Up @@ -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
Expand Down

0 comments on commit 1c307e8

Please sign in to comment.