cmake: haiku uses CXX code, so enable it in C-only project

This commit is contained in:
Anonymous Maarten 2023-01-09 20:09:27 +01:00 committed by Anonymous Maarten
parent 837416ef85
commit 049e6ff408

View File

@ -15,7 +15,7 @@ if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/SDL3Targets.cmake")
set(SDL3_SDL3_FOUND TRUE)
endif()
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/SDL3staticTargets.cmake")
if(ANDROID)
if(ANDROID OR HAIKU)
enable_language(CXX)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/SDL3staticTargets.cmake")