Fix CMake conditional to allow FreeBSD build (#74)

This commit is contained in:
Woodrow Douglass 2023-06-02 07:31:09 -04:00 committed by GitHub
parent bc367fd573
commit 7bbc6dc29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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