2019-06-28 06:57:05 +02:00
|
|
|
macro(use_cxx11)
|
2024-01-05 11:07:16 +01:00
|
|
|
# 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")
|
2019-06-28 06:57:05 +02:00
|
|
|
else ()
|
2024-01-05 11:07:16 +01:00
|
|
|
set (CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard to use")
|
|
|
|
endif()
|
2019-06-28 06:57:05 +02:00
|
|
|
endmacro(use_cxx11)
|