Skip to content

Commit 588d0f1

Browse files
committed
Place restrictions on compiler
1 parent a1ff0a1 commit 588d0f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ elseif("Clang" STREQUAL "${CMAKE_CXX_COMPILER_ID}")
88
elseif("GNU" STREQUAL "${CMAKE_CXX_COMPILER_ID}")
99
set(CMAKE_CXX_COMPILER_MIN_VERSION "11.4")
1010
else()
11-
# Unset the minimum required version variable so the comparison test always evaluates to true
12-
set(CMAKE_CXX_COMPILER_MIN_VERSION "")
11+
message(
12+
FATAL_ERROR
13+
"Unsupported compiler: ${CMAKE_CXX_COMPILER_ID}. Please use AppleClang, Clang, or GNU."
14+
)
1315
endif()
1416
if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "${CMAKE_CXX_COMPILER_MIN_VERSION}")
1517
message(

0 commit comments

Comments
 (0)