Skip to content

Commit

Permalink
cmake: Force linker to treat input as a C++ program on Haiku.
Browse files Browse the repository at this point in the history
Reference issue #4590.
  • Loading branch information
icculus committed Aug 4, 2021
1 parent 88674b4 commit b83a019
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b83a019

Please sign in to comment.