CMake: Add variable to indicate if c++11 or later is enabled

Use it in macOS checks.
This commit is contained in:
Maarten Bent
2020-04-07 00:14:45 +02:00
parent c8209a5111
commit 5c2d186132
3 changed files with 12 additions and 17 deletions

View File

@@ -11,6 +11,11 @@
if(DEFINED wxBUILD_CXX_STANDARD AND NOT wxBUILD_CXX_STANDARD STREQUAL COMPILER_DEFAULT)
set(CMAKE_CXX_STANDARD ${wxBUILD_CXX_STANDARD})
endif()
if(NOT CMAKE_CXX_STANDARD EQUAL 98)
set(wxHAS_CXX11 TRUE)
else()
set(wxHAS_CXX11 FALSE)
endif()
if(MSVC)
# Determine MSVC runtime library flag