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.
This commit is contained in:
Vadim Zeitlin 2022-10-10 20:10:35 +02:00
parent 182eebdbf3
commit d517a48c31

View file

@ -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)