mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-12 04:02:35 +02:00
fix cmake config for bullet after c++-11 changes
This commit is contained in:
parent
11f01e1859
commit
25b00977be
2 changed files with 7 additions and 3 deletions
|
@ -10,8 +10,9 @@
|
|||
macro(INCLUDE_BULLET)
|
||||
find_package(Bullet)
|
||||
if (BULLET_FOUND)
|
||||
include_directories(SYSTEM "${BULLET_INCLUDE_DIRS}")
|
||||
list(APPEND ${TARGET_NAME}_LIBRARIES_TO_LINK "${BULLET_LIBRARIES}")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_BULLET_PHYSICS")
|
||||
include_directories("${BULLET_INCLUDE_DIRS}")
|
||||
if (APPLE OR UNIX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_BULLET_PHYSICS -isystem ${BULLET_INCLUDE_DIRS}")
|
||||
endif ()
|
||||
endif (BULLET_FOUND)
|
||||
endmacro(INCLUDE_BULLET)
|
||||
|
|
|
@ -5,6 +5,9 @@ setup_hifi_library()
|
|||
|
||||
include_glm()
|
||||
include_bullet()
|
||||
if (BULLET_FOUND)
|
||||
target_link_libraries(${TARGET_NAME} ${BULLET_LIBRARIES})
|
||||
endif (BULLET_FOUND)
|
||||
|
||||
link_hifi_libraries(shared fbx entities)
|
||||
include_hifi_library_headers(fbx)
|
||||
|
|
Loading…
Reference in a new issue