From b15bf4bb645411dad440a74af2b9fd6c26ee4b51 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Thu, 22 Dec 2022 18:07:23 +0800 Subject: fix: continue to solve ubuntu 18.04 build issues --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee3f5758..1f08f440 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -449,6 +449,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DELPP_NO_DEFAULT_LOG_FILE") # Introduce boost if(NOT BOOST_ROOT) find_package(Boost COMPONENTS date_time system REQUIRED) +else() + find_package(Boost + COMPONENTS date_time system REQUIRED + PATHS ${BOOST_ROOT} NO_DEFAULT_PATH) endif() # Introduce OpenSSL -- cgit v1.2.3