Skip to content

Commit

Permalink
[cmake] Aid CMake 3.18.2 on Linux to find_package a bundled Boost 1.68"
Browse files Browse the repository at this point in the history
  • Loading branch information
tomilov authored and mpimenov committed Sep 23, 2020
1 parent a4f0cf4 commit 609bd71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/BundledBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ set(BOOST_LIBRARYDIR "${BOOST_ROOT}/stage/lib")
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)

if (PLATFORM_ANDROID)
if (PLATFORM_ANDROID OR PLATFORM_LINUX)
# todo This variable must be set by find_package(Boost).
# However, Android sdk that we currently use ships with CMake 3.10
# which is unable to do it because of a bug in CMake's find_path().
# CMake 3.18.2 also can't find bundled Boost on Linux platform.
set(Boost_INCLUDE_DIR ${BOOST_ROOT})
endif()

Expand Down

0 comments on commit 609bd71

Please sign in to comment.