CMake: Set wxBUILD_CXX_STANDARD globally instead of only on targets
This way the tests in setup.cmake will use the correct c++ version.
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
if(DEFINED wxBUILD_CXX_STANDARD AND NOT wxBUILD_CXX_STANDARD STREQUAL COMPILER_DEFAULT)
|
||||
set(CMAKE_CXX_STANDARD ${wxBUILD_CXX_STANDARD})
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
# Determine MSVC runtime library flag
|
||||
set(MSVC_LIB_USE "/MD")
|
||||
|
Reference in New Issue
Block a user