diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-05-14 18:16:03 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-06-10 13:50:13 +0300 |
commit | c63e2a5077bff329b63f5954737ecfea0e8fbc50 (patch) | |
tree | e7e9d9dd090ef635f2b292787e37f521bfd789ac /CMakeLists.txt | |
parent | 3946ef2837022d28b9e8db4fa909166c3b2129fa (diff) |
[cmake][boost] Added cmake functions to install boost.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fcb45af6b6..a065c23c5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${OMIM_ROOT}/cmake") include(OmimHelpers) include(BuildVersion) +include(ExternalBoost) if (CMAKE_SYSTEM_NAME MATCHES "Linux") set(LINUX_DETECTED TRUE) @@ -147,8 +148,18 @@ if (PLATFORM_MAC) endif() set(BOOST_VERSION 1.68) -set(Boost_INCLUDE_DIR "${OMIM_ROOT}/3party/boost") -set(Boost_LIBRARY_DIR "${OMIM_ROOT}/3party/boost/stage/lib/") +set(BOOST_ROOT "${OMIM_ROOT}/3party/boost") +set(BOOST_INCLUDEDIR "${OMIM_ROOT}/3party/boost") +set(BOOST_BOOST_LIBRARYDIR "${OMIM_ROOT}/3party/boost/stage/lib/") +set(Boost_NO_SYSTEM_PATHS ON) + +set(Boost_INCLUDE_DIR "${BOOST_INCLUDEDIR}") +set(Boost_LIBRARY_DIR "${BOOST_BOOST_LIBRARYDIR}") +set(Boost_USE_STATIC_LIBS ON) + +init_boost() +install_boost_headers() + find_package(Boost ${BOOST_VERSION} EXACT) if (PYBINDINGS) |