Fail in systems with unknown CMAKE_SYSTEM_NAME

This commit is contained in:
Robert Schulze 2022-05-10 10:54:48 +02:00
parent 6a4e1e3fbd
commit 3a5c16ebbd
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -15,6 +15,8 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
elseif (CMAKE_SYSTEM_NAME MATCHES "SunOS")
set (OS_SUNOS 1)
add_definitions(-D OS_SUNOS)
else ()
message (FATAL_ERROR "Platform ${CMAKE_SYSTEM_NAME} is not supported")
endif ()
if (CMAKE_CROSSCOMPILING)