-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60fe551
commit 462ae2b
Showing
10 changed files
with
162 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1) | ||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1) | ||
message(ERROR "GCC >= 5.1 required - detected ${CMAKE_CXX_COMPILER_VERSION} not supported") | ||
endif () | ||
endif() | ||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5) | ||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5) | ||
message(ERROR "Clang >= 3.5 required - detected ${CMAKE_CXX_COMPILER_VERSION} not supported") | ||
endif () | ||
endif() | ||
elseif(MSVC) | ||
if (MSVC_VERSION VERSION_LESS 1900) | ||
if(MSVC_VERSION VERSION_LESS 1900) | ||
message(ERROR "Visual Studio >= 2015 (19.0) required - detected ${MSVC_VERSION} not supported") | ||
endif () | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
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) | ||
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") | ||
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) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.