mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
ext/slam: Use LDFLAGS instead of libraries
This lets us avoid LIBRARY_PATH in order to build Monado.
This commit is contained in:
parent
c924157c59
commit
99c1742c82
|
@ -182,6 +182,7 @@ foreach(slam_system IN LISTS EXTERNAL_SLAM_SYSTEMS)
|
||||||
endif()
|
endif()
|
||||||
if(${slam_system}_FOUND)
|
if(${slam_system}_FOUND)
|
||||||
set(SLAM_NAME ${slam_system})
|
set(SLAM_NAME ${slam_system})
|
||||||
|
set(SLAM_LDFLAGS ${${slam_system}_LDFLAGS})
|
||||||
set(SLAM_LIBRARIES ${${slam_system}_LIBRARIES})
|
set(SLAM_LIBRARIES ${${slam_system}_LIBRARIES})
|
||||||
set(SLAM_INCLUDE_DIRS ${${slam_system}_INCLUDE_DIRS})
|
set(SLAM_INCLUDE_DIRS ${${slam_system}_INCLUDE_DIRS})
|
||||||
# Exit after the first we find.
|
# Exit after the first we find.
|
||||||
|
|
2
src/external/CMakeLists.txt
vendored
2
src/external/CMakeLists.txt
vendored
|
@ -80,7 +80,7 @@ if(XRT_FEATURE_SLAM)
|
||||||
xrt-external-slam INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/slam_tracker
|
xrt-external-slam INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/slam_tracker
|
||||||
)
|
)
|
||||||
target_include_directories(xrt-external-slam SYSTEM INTERFACE ${SLAM_INCLUDE_DIRS})
|
target_include_directories(xrt-external-slam SYSTEM INTERFACE ${SLAM_INCLUDE_DIRS})
|
||||||
target_link_libraries(xrt-external-slam INTERFACE ${SLAM_LIBRARIES})
|
target_link_libraries(xrt-external-slam INTERFACE ${SLAM_LDFLAGS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# STB
|
# STB
|
||||||
|
|
Loading…
Reference in a new issue