10 lines
371 B
CMake
10 lines
371 B
CMake
macro(use_cxx11)
|
|
# some GitHub Action Windows runners randomly fail with a complaint that Qt6 requires a C++17 compiler
|
|
if (MSVC AND USE_QT6)
|
|
# CMAKE_CXX_STANDARD 17 was added in CMake 3.8
|
|
set (CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to use")
|
|
else ()
|
|
set (CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard to use")
|
|
endif()
|
|
endmacro(use_cxx11)
|