From ec3d09bd9c3431f13b0978a698ff3b4fb7fb1eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 1 Aug 2023 16:36:01 +0200 Subject: [PATCH] cmake: Enable Objective-C++ language for standalone test projects Amends 8450ab8dec83f075ee028f35b3035c9478fa13ce. Task-number: QTBUG-93020 Change-Id: Ied86754dbcd216a73cc77135c2c45303463d28d2 Reviewed-by: Alexandru Croitor --- tests/auto/corelib/io/qdebug/CMakeLists.txt | 1 + tests/auto/corelib/io/qfileinfo/CMakeLists.txt | 1 + tests/auto/gui/kernel/qwindow/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) 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()