修改 CollisionDetector.cpp 和 CMakeLists.txt

This commit is contained in:
Tian jianyong 2024-12-20 14:19:33 +08:00
parent f22a30398f
commit f708628c22
2 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,12 @@ set(Boost_NO_WARN_NEW_VERSIONS 1)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost REQUIRED COMPONENTS system filesystem thread)
if(NOT APPLE)
# CentOS 使 Boost 1.69
set(BOOST_ROOT "/usr/include/boost169")
set(BOOST_LIBRARYDIR "/usr/lib64/boost169")
endif()
find_package(Boost 1.69.0 REQUIRED COMPONENTS system filesystem thread)
# libcurl
find_package(CURL REQUIRED)

View File

@ -3,7 +3,6 @@
#include "utils/Logger.h"
#include "config/SystemConfig.h"
#include <cmath>
#include <format>
#include <unordered_set>
CollisionDetector::CollisionDetector(const AirportBounds& bounds, const ControllableVehicles& controllableVehicles)