Skip to content

Commit

Permalink
set cxx standard
Browse files Browse the repository at this point in the history
  • Loading branch information
bernedom committed Jul 26, 2024
1 parent 916eb97 commit c7e991c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chapter10/ex03_simple_qt_app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion chapter12/emulator-example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c7e991c

Please sign in to comment.