[CMake] cmake 3.5 vs 3.6 + qt

David Callu ledocc.pub at gmail.com
Fri Jul 15 04:50:36 EDT 2016


Hi Tom,

Same thing on my side. I call in my code functions defined in generated
.cpp from moc/rcc.
Functions name are based on file path used during .cpp generation.
And this path change from cmake 3.5 to 3.6.

You should check functions in generated .cpp files that you used in your
code.

HTH
David

2016-07-15 1:54 GMT+02:00 Tom Kulaga <tommy8927 at gmail.com>:

> 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?
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160715/abf35dfa/attachment.html>


More information about the CMake mailing list