File tree Expand file tree Collapse file tree 3 files changed +60
-13
lines changed
Expand file tree Collapse file tree 3 files changed +60
-13
lines changed Original file line number Diff line number Diff line change 1- # Copyright (C) 2019 HERE Europe B.V.
1+ # Copyright (C) 2019-2020 HERE Europe B.V.
22#
33# Licensed under the Apache License, Version 2.0 (the "License");
44# you may not use this file except in compliance with the License.
@@ -58,7 +58,8 @@ set(OLP_SDK_CPP_LEVELDB_TAG "1.21")
5858set (OLP_SDK_CPP_RAPIDJSON_URL "https://github.com/Tencent/rapidjson.git" )
5959set (OLP_SDK_CPP_RAPIDJSON_TAG "master" )
6060
61- set (OLP_SDK_CPP_BOOST_URL "https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz" )
61+ set (OLP_SDK_CPP_BOOST_URL "https://github.com/boostorg/boost.git" )
62+ set (OLP_SDK_CPP_BOOST_TAG "boost-1.72.0" )
6263
6364# Add external projects
6465find_package (GTest QUIET )
Original file line number Diff line number Diff line change 1- # Copyright (C) 2019 HERE Europe B.V.
1+ # Copyright (C) 2019-2020 HERE Europe B.V.
22#
33# Licensed under the Apache License, Version 2.0 (the "License");
44# you may not use this file except in compliance with the License.
1818# Boost
1919# Download and unpack boost at configure time
2020
21- configure_file (CMakeLists.txt.boost.in download/CMakeLists.txt)
21+ if (WIN32 )
22+ set (BOOTSTRAP_CMD bootstrap.bat)
23+ set (B2_CMD b2.exe)
24+ elseif (APPLE )
25+ # Reset the CXX (path to compiler) before running bootstrap.
26+ # Else we need to specify the -sysroot argument with CXXFLAGS.
27+ set (BOOTSTRAP_CMD unset CXX && ./bootstrap.sh)
28+ set (B2_CMD ./b2)
29+ else ()
30+ set (BOOTSTRAP_CMD ./bootstrap.sh)
31+ set (B2_CMD ./b2)
32+ endif ()
33+
34+ configure_file (CMakeLists.txt.boost.in download/CMakeLists.txt @ONLY)
2235
2336set (CMAKE_VERBOSE_MAKEFILE ON )
2437
Original file line number Diff line number Diff line change 1- # Copyright (C) 2019 HERE Europe B.V.
1+ # Copyright (C) 2019-2020 HERE Europe B.V.
22#
33# Licensed under the Apache License, Version 2.0 (the "License");
44# you may not use this file except in compliance with the License.
@@ -20,12 +20,45 @@ cmake_minimum_required(VERSION 3.9)
2020project(boost-download NONE)
2121
2222include(ExternalProject)
23- ExternalProject_Add(Boost
24- URL @OLP_SDK_CPP_BOOST_URL@
25- DOWNLOAD_DIR "${CMAKE_CURRENT_BINARY_DIR}/download"
26- SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/external_boost"
27- CONFIGURE_COMMAND ""
28- BUILD_COMMAND ""
29- INSTALL_COMMAND ""
30- TEST_COMMAND ""
23+
24+ ExternalProject_Add(boost-download
25+ GIT_REPOSITORY @OLP_SDK_CPP_BOOST_URL@
26+ GIT_TAG @OLP_SDK_CPP_BOOST_TAG@
27+ GIT_SUBMODULES libs/any
28+ libs/assert
29+ libs/config
30+ libs/container_hash
31+ libs/core
32+ libs/detail
33+ libs/format
34+ libs/function_types
35+ libs/headers
36+ libs/integer
37+ libs/io
38+ libs/iterator
39+ libs/move
40+ libs/mpl
41+ libs/numeric/conversion
42+ libs/optional
43+ libs/predef
44+ libs/preprocessor
45+ libs/random
46+ libs/serialization
47+ libs/smart_ptr
48+ libs/static_assert
49+ libs/throw_exception
50+ libs/tti
51+ libs/type_index
52+ libs/type_traits
53+ libs/utility
54+ libs/uuid
55+ libs/winapi
56+ tools/build
57+ tools/boost_install
58+ SOURCE_DIR @CMAKE_CURRENT_BINARY_DIR@/external_boost
59+ UPDATE_COMMAND ""
60+ CONFIGURE_COMMAND cd @CMAKE_CURRENT_BINARY_DIR@/external_boost && @BOOTSTRAP_CMD@
61+ BUILD_COMMAND cd @CMAKE_CURRENT_BINARY_DIR@/external_boost && @B2_CMD@ headers
62+ INSTALL_COMMAND ""
63+ TEST_COMMAND ""
3164)
You can’t perform that action at this time.
0 commit comments