cmake: Clean up build

This commit is contained in:
Ryan Pavlik 2022-05-04 12:49:44 -05:00 committed by Jakob Bornecrantz
parent ccb58dbe8a
commit bd90347fce

View file

@ -102,10 +102,15 @@ if(NOT WIN32)
find_package(Percetto MODULE)
find_package(Systemd MODULE)
find_package(OpenGLES MODULE COMPONENTS V3)
find_library(RT_LIBRARY rt)
endif()
if(NOT ANDROID)
if(NOT ANDROID AND NOT WIN32)
find_package(PkgConfig MODULE)
endif()
if(ANDROID)
find_library(ANDROID_LIBRARY android)
find_library(ANDROID_LOG_LIBRARY log)
endif()
if(WIN32)
find_package(wil CONFIG)
find_library(D3D11_LIBRARY d3d11)
@ -163,13 +168,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
pkg_check_modules(SURVIVE IMPORTED_TARGET survive)
endif()
find_library(RT_LIBRARY rt)
if(ANDROID)
find_library(ANDROID_LIBRARY android)
find_library(ANDROID_LOG_LIBRARY log)
endif()
# Find a external SLAM implementation
set(EXTERNAL_SLAM_SYSTEMS kimera_vio basalt)
foreach(slam_system IN LISTS EXTERNAL_SLAM_SYSTEMS)