MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014292 | CMake | CMake | public | 2013-07-15 11:26 | 2013-12-02 08:51 |
Reporter | Nikita Krupenko | ||||
Assigned To | Stephen Kelly | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x86 | OS | Windows | OS Version | 7 |
Product Version | CMake 2.8.11.2 | ||||
Target Version | Fixed in Version | CMake 2.8.12 | |||
Summary | 0014292: CMake does not add QT_NO_DEBUG definition for non-debug builds | ||||
Description | I created Qt5 CMake project and use the code like the following: cmake_minimum_required(VERSION 2.8.11) find_package(Qt5Core REQUIRED) target_link_libraries(${PROJECT_NAME} Qt5::Core) The problem is that CMake does not defines QT_NO_DEBUG for release build, like qmake does. If I build qml-plugin, I can't use release build of it, because Qt takes it for debug build and I get the following error: "The plugin uses incompatible Qt library. (Cannot mix debug and release libraries.)" The workaround is simple: if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DQT_NO_DEBUG) endif() It works, but I think this should be done in CMake. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-07-15 11:26 | Nikita Krupenko | New Issue | |||
2013-07-15 12:41 | Clinton Stimpson | Note Added: 0033540 | |||
2013-07-15 12:41 | Clinton Stimpson | Status | new => resolved | ||
2013-07-15 12:41 | Clinton Stimpson | Resolution | open => no change required | ||
2013-07-15 12:41 | Clinton Stimpson | Assigned To | => Clinton Stimpson | ||
2013-07-15 12:52 | Stephen Kelly | Assigned To | Clinton Stimpson => Stephen Kelly | ||
2013-07-15 12:52 | Stephen Kelly | Note Added: 0033541 | |||
2013-07-15 12:52 | Stephen Kelly | Status | resolved => feedback | ||
2013-07-15 12:52 | Stephen Kelly | Resolution | no change required => reopened | ||
2013-07-15 12:52 | Stephen Kelly | Status | feedback => assigned | ||
2013-07-24 11:20 | Stephen Kelly | Status | assigned => resolved | ||
2013-07-24 11:20 | Stephen Kelly | Fixed in Version | => CMake 2.8.12 | ||
2013-07-24 11:20 | Stephen Kelly | Resolution | reopened => fixed | ||
2013-12-02 08:51 | Robert Maynard | Note Added: 0034655 | |||
2013-12-02 08:51 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|