[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] CMake Error: Qt5::moc target not found ?
From:       Nils Gladitz <nilsgladitz () gmail ! com>
Date:       2014-03-20 12:36:03
Message-ID: 532AE0B3.4000304 () gmail ! com
[Download RAW message or body]

On 20.03.2014 12:18, Martin Koller wrote:
> However bulding on CentOS 6 gives me the following error
> (and a lot others like this) which I have no idea what cmake
> wants to tell me with:
> CMake Error: Qt5::moc target not found ui_automoc
> 
> what does that mean ?

It means it is trying to use "Qt::moc" which is an IMPORTED executable 
defined by the Qt5 configuration files rather than the QT_MOC_EXECUTABLE 
variable.

It is setup with code similar to:
     add_executable(Qt5::moc IMPORTED)

     set_target_properties(Qt5::moc PROPERTIES
         IMPORTED_LOCATION "/path/to/moc"
     )

For a smoother experience I'd use find_package() (and CMAKE_PREFIX_PATH) 
for local builds as well rather than trying to mimic the behavior of the 
configuration files.

Nils
-- 

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://www.cmake.org/mailman/listinfo/cmake


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic