Skip to content

Commit 072a379

Browse files
author
Luca Geretti
committed
Restrict Clang 16 only if not on macOS
1 parent bfcc30b commit 072a379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
99
message(WARNING "Microsoft compiler not supported.")
1010
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
1111
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0)
12-
message(FATAL_ERROR "GCC version must be at least 10.2!")
12+
message(FATAL_ERROR "GCC version must be at least 12!")
1313
endif()
1414
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
15-
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16.0)
16-
message(FATAL_ERROR "Clang version must be at least 11.0!")
15+
if ((NOT APPLE) AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16.0))
16+
message(FATAL_ERROR "Clang version must be at least 16!")
1717
endif()
1818
else()
1919
message(WARNING "You are using an unidentified compiler! Compilation has only been tested with Clang and GCC.")

0 commit comments

Comments
 (0)