diff --git a/tests/auto/corelib/io/qdebug/CMakeLists.txt b/tests/auto/corelib/io/qdebug/CMakeLists.txt index 15deeac2186..89d39c4375c 100644 --- a/tests/auto/corelib/io/qdebug/CMakeLists.txt +++ b/tests/auto/corelib/io/qdebug/CMakeLists.txt @@ -19,5 +19,6 @@ qt_internal_add_test(tst_qdebug ) if (APPLE) + enable_language(OBJCXX) set_source_files_properties(tst_qdebug.cpp PROPERTIES LANGUAGE OBJCXX) endif() diff --git a/tests/auto/corelib/io/qfileinfo/CMakeLists.txt b/tests/auto/corelib/io/qfileinfo/CMakeLists.txt index 697b74199e1..24b1c3972a9 100644 --- a/tests/auto/corelib/io/qfileinfo/CMakeLists.txt +++ b/tests/auto/corelib/io/qfileinfo/CMakeLists.txt @@ -54,5 +54,6 @@ qt_internal_extend_target(tst_qfileinfo CONDITION WIN32 ) if (APPLE) + enable_language(OBJCXX) set_source_files_properties(tst_qfileinfo.cpp PROPERTIES LANGUAGE OBJCXX) endif() diff --git a/tests/auto/gui/kernel/qwindow/CMakeLists.txt b/tests/auto/gui/kernel/qwindow/CMakeLists.txt index 0504c774131..f65cf6bede9 100644 --- a/tests/auto/gui/kernel/qwindow/CMakeLists.txt +++ b/tests/auto/gui/kernel/qwindow/CMakeLists.txt @@ -31,6 +31,7 @@ if(APPLE OR WIN32) ) if(APPLE) + enable_language(OBJCXX) set_source_files_properties(tst_foreignwindow.cpp PROPERTIES LANGUAGE OBJCXX) set_property(TARGET tst_foreignwindow PROPERTY PROPERTY MACOSX_BUNDLE TRUE) endif()