From d517a48c31448315a6d1d65bfcdb62fd9ee73ef0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Oct 2022 20:10:35 +0200 Subject: [PATCH] Require C++11 in the minimal sample CMakefile too We could, and probably should, set target-level property on wx libraries instead, but we'll have to increase the minimum required CMake version to 3.8 in order to be able to do it. --- samples/minimal/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/minimal/CMakeLists.txt b/samples/minimal/CMakeLists.txt index ff4cff3cb0..a68272f763 100644 --- a/samples/minimal/CMakeLists.txt +++ b/samples/minimal/CMakeLists.txt @@ -29,6 +29,9 @@ endif() # Name the project project(minimal) +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + # Request the required wxWidgets libs find_package(wxWidgets 3.3 COMPONENTS core base REQUIRED CONFIG)