From c7e991c10867da1c100394e033d6be4856938409 Mon Sep 17 00:00:00 2001 From: Dominik Berner Date: Fri, 26 Jul 2024 19:34:36 +0200 Subject: [PATCH] set cxx standard --- chapter10/ex03_simple_qt_app/CMakeLists.txt | 2 +- chapter12/emulator-example/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter10/ex03_simple_qt_app/CMakeLists.txt b/chapter10/ex03_simple_qt_app/CMakeLists.txt index 87ec42c..4b7c9fa 100644 --- a/chapter10/ex03_simple_qt_app/CMakeLists.txt +++ b/chapter10/ex03_simple_qt_app/CMakeLists.txt @@ -29,7 +29,7 @@ endif() add_executable(ch10_ex03_simple_qt_app main.cpp) # Set C++ standard for the executable -target_compile_features(ch10_ex03_simple_qt_app PRIVATE cxx_std_11) +target_compile_features(ch10_ex03_simple_qt_app PRIVATE cxx_std_17) # Link QT components to the executable target_link_libraries(ch10_ex03_simple_qt_app Qt6::Core Qt6::Widgets) \ No newline at end of file diff --git a/chapter12/emulator-example/CMakeLists.txt b/chapter12/emulator-example/CMakeLists.txt index c8c543d..c340962 100644 --- a/chapter12/emulator-example/CMakeLists.txt +++ b/chapter12/emulator-example/CMakeLists.txt @@ -13,7 +13,7 @@ project( ch12_emulator_example VERSION 1.0 DESCRIPTION "A simple C++ project to demonstrate basic CMake usage" - LANGUAGES CXX) + LANGUAGES CXX C) # enable testing include(CTest)