Don't tell CMake we're making debug libraries if we're not.

The config option debug_and_release is set on Windows and on
mac (unless xcode is used independently of whether Qt is configured
with -release or not.)

We need to check CONFIG(release,debug|release) to see if
-release was set.

Change-Id: Ibf952958874f6b102981526b3397e848c207a3f2
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
This commit is contained in:
Stephen Kelly 2012-04-20 19:43:00 +02:00 committed by Qt by Nokia
parent ecba58500e
commit f88212c22f

View File

@ -113,8 +113,8 @@ macx {
CMAKE_DEBUG_TYPE =
CMAKE_RELEASE_TYPE =
debug_and_release|debug:CMAKE_DEBUG_TYPE = debug
debug_and_release|release:CMAKE_RELEASE_TYPE = release
debug_and_release:CONFIG(debug,debug|release):CMAKE_DEBUG_TYPE = debug
debug_and_release|CONFIG(release,debug|release):CMAKE_RELEASE_TYPE = release
INSTALLS += cmake_qt5_module_files