cmake: Force linker to treat input as a C++ program on Haiku.

Reference issue #4590.
main
Ryan C. Gordon 2021-08-04 19:22:10 -04:00
parent 88674b4a0e
commit b83a019d68
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ if(WINDOWS_STORE)
add_definitions(-DSDL_BUILDING_WINRT=1 -ZW)
endif()
if (HAIKU)
set(LINKER_LANGUAGE CXX)
endif()
# !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
# !!! FIXME: for the SDL2 shared library (so you get an
# !!! FIXME: install_name ("soname") of "@rpath/libSDL-whatever.dylib"