Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.0 Alpha
-
None
-
Mac 10.7
-
-
8bd84b11d34ad7a7d01f46f157c1a31485eef2e2
Description
A newer version (2.8.12 compared to 2.8.10 used in the CI) of CMake causes tests to fail. Reason is that 3 new test cases are run then:
/work/build/qtbase/tests/auto/cmake/CMakeLists.txt
if (NOT CMAKE_VERSION VERSION_LESS 2.8.11) expect_pass(test_interface) endif() if (NOT CMAKE_VERSION VERSION_LESS 2.8.12) expect_pass(test_interface_link_libraries) expect_pass(test_moc_macro_target) endif()
The output log:
16:01:26 QtQA::App::TestRunner: begin cmake (qtbase): [ctest] [--output-on-failure] 16:01:26 Test project /work/build/qtbase/tests/auto/cmake/build 16:01:26 Start 1: test_use_modules_function ... 16:02:33 Start 24: test_moc_macro_target 16:02:35 24/24 Test #24: test_moc_macro_target .............***Failed 1.33 sec 16:02:35 Internal cmake changing into directory: /work/build/qtbase/tests/auto/cmake/build/test_moc_macro_target ... 16:02:35 /work/build/qtbase/tests/auto/cmake/test_moc_macro_target/interface/myinterface.h:42:1: error: no function template matches function template specialization 'qobject_interface_iid' 16:02:35 Q_DECLARE_INTERFACE(MyInterface, "org.cmake.example.MyInterface") 16:02:35 ^ 16:02:35 /work/build/qtbase/lib/QtCore.framework/Headers/qobject.h:538:36: note: expanded from macro 'Q_DECLARE_INTERFACE' 16:02:35 template <> inline const char *qobject_interface_iid<IFace *>() \ 16:02:35 ^ 16:02:35 In file included from /work/build/qtbase/tests/auto/cmake/test_moc_macro_target/main_gen_test.cpp:36: 16:02:35 /work/build/qtbase/tests/auto/cmake/test_moc_macro_target/interface/myinterface.h:42:1: error: no function template matches function template specialization 'qobject_cast' 16:02:35 Q_DECLARE_INTERFACE(MyInterface, "org.cmake.example.MyInterface") 16:02:35 ^ 16:02:35 /work/build/qtbase/lib/QtCore.framework/Headers/qobject.h:540:31: note: expanded from macro 'Q_DECLARE_INTERFACE' 16:02:35 template <> inline IFace *qobject_cast<IFace *>(QObject *object) \ 16:02:35 ^ 16:02:35 In file included from /work/build/qtbase/tests/auto/cmake/test_moc_macro_target/main_gen_test.cpp:36: 16:02:35 /work/build/qtbase/tests/auto/cmake/test_moc_macro_target/interface/myinterface.h:42:1: error: no function template matches function template specialization 'qobject_cast' 16:02:35 Q_DECLARE_INTERFACE(MyInterface, "org.cmake.example.MyInterface") 16:02:35 ^ 16:02:35 /work/build/qtbase/lib/QtCore.framework/Headers/qobject.h:542:31: note: expanded from macro 'Q_DECLARE_INTERFACE' 16:02:35 template <> inline IFace *qobject_cast<IFace *>(const QObject *object) \ 16:02:35 ^ 16:02:35 3 errors generated. 16:02:35 make[2]: *** [CMakeFiles/Qt5GenerateMacroTest.dir/main_gen_test.cpp.o] Error 1 16:02:35 make[1]: *** [CMakeFiles/Qt5GenerateMacroTest.dir/all] Error 2 16:02:35 make: *** [all] Error 2