illumos/solaris build fix

This commit is contained in:
David Carlier 2022-05-14 11:31:51 +01:00
parent b50e977cfe
commit db8fdb9ccf

View File

@ -60,13 +60,15 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
add_definitions(-DSPIRV_FREEBSD) add_definitions(-DSPIRV_FREEBSD)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD") elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
add_definitions(-DSPIRV_OPENBSD) add_definitions(-DSPIRV_OPENBSD)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "NetBSD") elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "NetBSD")
add_definitions(-DSPIRV_NETBSD) add_definitions(-DSPIRV_NETBSD)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia") elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
add_definitions(-DSPIRV_FUCHSIA) add_definitions(-DSPIRV_FUCHSIA)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Haiku") elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Haiku")
add_definitions(-DSPIRV_HAIKU) add_definitions(-DSPIRV_HAIKU)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
add_definitions(-DSPIRV_SOLARIS)
else() else()
message(FATAL_ERROR "Your platform '${CMAKE_SYSTEM_NAME}' is not supported!") message(FATAL_ERROR "Your platform '${CMAKE_SYSTEM_NAME}' is not supported!")
endif() endif()