Skip to content
Snippets Groups Projects
Commit 8b173ba3 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

attempt to work around debian packging differences

parent 9ea9a725
No related branches found
No related tags found
No related merge requests found
find_package( OpenAL CONFIG )
if ( NOT OpenAL_FOUND )
# ubuntu openal-soft package doesn't seem to have a config file
# ubuntu/debian openal-soft package doesn't seem to have a config file
# it's probably falling back to findOpenAL.cmake
message( STATUS "Using OpenAL-Soft config missing - falling back" )
find_package( OpenAL REQUIRED )
endif()
if ( TARGET OpenAL::OpenAL )
target_link_libraries( fggl PUBLIC OpenAL::OpenAL )
target_link_libraries( fggl public ${OPENAL_LIBRARY} )
target_include_directories( fggl public ${OPENAL_INCLUDE_DIR} )
else()
target_link_libraries( fggl PUBLIC OpenAL )
# we're using target-based
message( STATUS "Using OpenAL-Soft config file" )
if ( TARGET OpenAL::OpenAL )
target_link_libraries( fggl PUBLIC OpenAL::OpenAL )
else()
target_link_libraries( fggl PUBLIC OpenAL )
endif()
endif()
target_sources(fggl
......
......@@ -3,7 +3,7 @@ find_package( Bullet CONFIG )
if ( NOT Bullet_FOUND )
message(WARNING "Bullet not found - disabling bullet physics integration")
else()
message(STATUS "Bullet found")
message( STATUS "Bullet is poorly packaged, you might need to disable support for it" )
if ( MSVC )
# see https://github.com/microsoft/vcpkg/issues/7877
......@@ -13,6 +13,7 @@ else()
target_compile_definitions(fggl PUBLIC ${BULLET_DEFINITIONS})
if ( BULLET_INCLUDE_DIRS STREQUAL "include/bullet" )
message( STATUS "Bullet include path is relative - hard-coding" )
# FIXME possible debian packing bug: path is relative in BulletConfig.cmake
# FIXME debian packaging bug: BulletConfig.cmake lists BulletInverseDynamics, but that's packaged in bullet-extras
target_include_directories(fggl PUBLIC ${BULLET_ROOT_DIR}/${BULLET_INCLUDE_DIRS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment