Commit 279b665a authored by Matthias Möller's avatar Matthias Möller

fix: defining qt_no_debug (qt5) for the different build types selected with...

fix: defining qt_no_debug (qt5) for the different build types selected with build-type-multigenerators external from cmake
(define: debug in cmake but can choose debug in msvc now for qt5)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17894 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a5de0f06
......@@ -319,12 +319,26 @@ macro (acg_qt5)
endif()
add_definitions(-DQT_NO_OPENGL)
#adding QT_NO_DEBUG to all release modes.
# Note: for multi generators like msvc you cannot set this definition depending of
# the current build type, because it may change in the future inside the ide and not via cmake
if (MSVC_IDE)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /DQT_NO_DEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /DQT_NO_DEBUG")
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_RELEASE} /DQT_NO_DEBUG")
set(CMAKE_CXX_FLAGS_MINSITEREL "${CMAKE_C_FLAGS_RELEASE} /DQT_NO_DEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE} /DQT_NO_DEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE} /DQT_NO_DEBUG")
else(MSVC_IDE)
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DQT_NO_DEBUG)
endif()
endif ()
endif(MSVC_IDE)
#endif ()
endif ()
endmacro ()
# unsets the given variable
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment