Re: [CMake] with cmake-3.9 my testprj breaks, I need to add "add_executable(Qt4::rcc IMPORTED)"

2017-08-08 Thread Rolf Eike Beer
(and we don't use find_lib(QT) because once upon a time it was tried but not instantly found working for cross compiling). We're investigating whether we simply can switch to find_lib(QT) which should solve that. Does this make sense or am I mislead? I have used it for crosscompiling in

Re: [CMake] with cmake-3.9 my testprj breaks, I need to add "add_executable(Qt4::rcc IMPORTED)"

2017-08-08 Thread Steffen Dettmer
Hi! thanks for your quick reply. On Mon, Aug 7, 2017 at 7:56 PM, Robert Maynard wrote: > > CMake Error: Qt4::rcc target not found hello_world > > Did this work pre CMake 3.9? Yes, it did. However I missed that some of our CMakeLists.txt has "add_executable(Qt4::moc

Re: [CMake] with cmake-3.9 my testprj breaks, I need to add "add_executable(Qt4::rcc IMPORTED)"

2017-08-07 Thread Robert Maynard
Did this work pre CMake 3.9? On Mon, Aug 7, 2017 at 8:49 AM, Steffen Dettmer wrote: > Hi, > > I have a cmake test project that builds a "hello world" with our > cross toolchain. There are selfmade TOOLCHAINFILES for the > targets. They define QT variables like: > >

[CMake] with cmake-3.9 my testprj breaks, I need to add "add_executable(Qt4::rcc IMPORTED)"

2017-08-07 Thread Steffen Dettmer
Hi, I have a cmake test project that builds a "hello world" with our cross toolchain. There are selfmade TOOLCHAINFILES for the targets. They define QT variables like: set(BT_QT_4_7_3_PATH.../taget/Qt-4.7.3) set(QT_BINARY_DIR${BT_QT_4_7_3_PATH}/bin) set(QT_LIBRARY_DIR