Commit 23d4cc60 authored by Matthias Vallentin's avatar Matthias Vallentin

Avoid CMake pain when using custom Boost prefix.

parent e63cd5e0
......@@ -155,6 +155,10 @@ if (NOT DISABLE_CONTEXT_SWITCHING)
)
endif ()
if (BOOST_ROOT)
# Prevent falling back to system paths when using a custom Boost prefix.
set(Boost_NO_SYSTEM_PATHS true)
endif ()
find_package(Boost REQUIRED)
find_package(PTHREAD REQUIRED)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment