[CMake] cmake 3.5 vs 3.6 + qt

Tom Kulaga tommy8927 at gmail.com
Thu Jul 14 19:54:27 EDT 2016


Hi All,

I'm using 3.5.2 for a qt based project and I've updated to 3.6 and the RCC
feature seems to fail. Here's a summary

CMAKE settings:

cmake_policy(SET CMP0015 NEW) # relative linker paths

cmake_policy(SET CMP0020 NEW) # linking to qmainlib


# Tell CMake to run moc when necessary:

set(CMAKE_AUTOMOC ON)

set(CMAKE_AUTOUIC ON)

set(CMAKE_AUTORCC ON)

# As moc files are generated in the binary dir, tell CMake

# to always look for includes there:

set(CMAKE_INCLUDE_CURRENT_DIR ON)


When I swtiched to 3.6, the compiler can no longer link to the
generated rcc files.


Anyone else face this or know what I'm doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160714/6ea391e8/attachment.html>


More information about the CMake mailing list