Release app building debug versions
-
Hi. I am having a problem where my debug cases in my .pro files are being built when I have my projects set to release. Here is the lay of the land.
I have two projects. One is a DLL and one is an EXE, both are open in a single instance of Qt Creator. My EXE uses the DLL.
My dll has this section for its debug and release differences:
@
win32:debug {
LIBS += ../../common/openAL/windows/libs/Win32/OpenAL32.lib
../../common/boost_1_46_0/stage.win32/lib/libboost_system-vc90-mt-gd-1_46.lib
../../common/boost_1_46_0/stage.win32/lib/libboost_filesystem-vc90-mt-gd-1_46.lib
}win32:release {
LIBS += ../../common/openAL/windows/libs/Win32/OpenAL32.lib
../../common/boost_1_46_0/stage.win32/lib/libboost_system-vc90-mt-1_46.lib
../../common/boost_1_46_0/stage.win32/lib/libboost_filesystem-vc90-mt-1_46.lib
}
@And my EXE has these differences:
@
win32:debug{
LIBS += ../MyDLL/MyDLL-build-desktop/debug/MyDLL.lib
PRE_TARGETDEPS = ../MyDLL/MyDLL-build-desktop/debug/MyDLL.dll
QMAKE_PRE_LINK = copy /Y "..\MyDLL\MyDLL-build-desktop\debug\MyDLL.dll" "debug"
}win32:release{
LIBS += ../MyDLL/MyDLL-build-desktop/release/MyDLL.lib
PRE_TARGETDEPS = ../MyDLL/MyDLL-build-desktop/release/MyDLL.dll
QMAKE_PRE_LINK = copy /Y "..\MyDLL\MyDLL-build-desktop\release\MyDLL.dll" "release"
}
@Now when I set Release mode for both of my projects and do a clean all/build all I am getting debug versions of msvcrt built into my release mode., if I comment out the debug sections in my .pro files then my build is correct without any debug libraries.
Any ideas?
Thanks.
-=ben