Fix CMake condition to allow build on OpenBSD (#124)

This commit is contained in:
λP.(P izzy) 2024-02-14 20:09:28 -06:00 committed by GitHub
parent f33143d0db
commit e672467ef2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -347,7 +347,7 @@ if(APPLE)
set(MACOSX_BUNDLE_BUNDLE_VERSION "1.0.0")
endif()
if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD"))
if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD"))
add_subdirectory("third_party/sdl2")
else()
find_package(SDL2)