File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ outputs:
1414 BOOST_ROOT :
1515 description : The location of the installed boost.
1616 value : ${{ steps.determine-root.outputs.BOOST_ROOT }}
17+ Boost_DIR :
18+ description : Location of cmake support for boost.
19+ value : ${{ steps.boost-download.outputs.Boost_DIR }}
1720runs :
1821 using : composite
1922 steps :
3336 run : |
3437 choco install boost-msvc-14.3 --version 1.87.0 -y --no-progress
3538 echo "BOOST_ROOT=C:\local\boost_1_87_0" >> $GITHUB_OUTPUT
39+ echo "Boost_DIR=C:\local\boost_1_87_0\lib64-msvc-14.3\cmake\Boost-1.87.0" >> $GITHUB_OUTPUT
3640
3741 - name : Install boost using homebrew
3842 id : brew-action
Original file line number Diff line number Diff line change 3232 if : runner.os == 'Windows'
3333 shell : bash
3434 run : |
35- choco install openssl --version 3.5.3 -y --no-progress
35+ choco install openssl --version 3.5.4 -y --no-progress
3636 if [ -d "C:\Program Files\OpenSSL-Win64" ]; then
3737 echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL-Win64" >> $GITHUB_OUTPUT
3838 else
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ runs:
100100 if : runner.os == 'Windows'
101101 shell : bash
102102 env :
103+ Boost_DIR : ${{ steps.install-boost.outputs.Boost_DIR }}
103104 BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
104105 OPENSSL_ROOT_DIR : ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }}
105106 run : ./scripts/build-release-windows.sh ${{ inputs.sdk_cmake_target }}
Original file line number Diff line number Diff line change 3434 run : ./scripts/run-hello-apps.sh static hello-c-client hello-cpp-client hello-c-server hello-cpp-server
3535 env :
3636 BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
37- OPENSSL_ROOT_DIR : ${{ steps.install-openssl.outputs.OPENSSL_ROOT_DIR }}
37+ Boost_DIR : ${{ steps.install-boost.outputs.Boost_DIR }}
38+
3839 - name : Dynamically Linked Hello Apps (C API only)
3940 shell : bash
4041 continue-on-error : true # TODO(SC-223804)
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ if (POLICY CMP0144)
2121 cmake_policy (SET CMP0144 NEW )
2222endif ()
2323
24+ # This policy is designed to force a choice between the old behavior of an integrated FindBoost implementation
25+ # and the implementation provided in by boost.
26+ if (POLICY CMP0167)
27+ # Uses the BoostConfig.cmake included with the boost distribution.
28+ cmake_policy (SET CMP0167 NEW )
29+ endif ()
30+
31+
2432option (BUILD_TESTING "Top-level switch for testing. Turn off to disable unit and contract tests." ON )
2533
2634option (LD_BUILD_SHARED_LIBS "Build the SDKs as shared libraries" OFF )
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ if (NOT DEFINED Boost_USE_STATIC_LIBS)
88 endif ()
99endif ()
1010
11+ # This policy is designed to force a choice between the old behavior of an integrated FindBoost implementation
12+ # and the implementation provided in by boost.
13+ if (POLICY CMP0167)
14+ # Uses the BoostConfig.cmake included with the boost distribution.
15+ cmake_policy (SET CMP0167 NEW )
16+ endif ()
17+
1118find_dependency (Boost 1.81 COMPONENTS json url coroutine )
1219find_dependency (OpenSSL )
1320find_dependency (tl-expected )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ FetchContent_Declare(timestamp
55
66FetchContent_GetProperties (timestamp)
77if (NOT timestamp_POPULATED)
8- FetchContent_Populate (timestamp)
8+ FetchContent_MakeAvailable (timestamp)
99endif ()
1010
1111add_library (timestamp OBJECT
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ cd build-"$1" || exit
4040# script ends.
4141trap cleanup EXIT
4242
43+ echo Boost dir $Boost_DIR
44+ echo Boost root $BOOST_ROOT
45+
4346cmake -G Ninja -D CMAKE_BUILD_TYPE=Release \
4447 -D BUILD_TESTING=OFF \
4548 -D LD_BUILD_SHARED_LIBS=$dynamic_linkage \
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ cmake_minimum_required(VERSION 3.13)
1111
1212set (foxy_minimum_boost_version 1.75)
1313
14+ # This policy is designed to force a choice between the old behavior of an integrated FindBoost implementation
15+ # and the implementation provided in by boost.
16+ if (POLICY CMP0167)
17+ # Uses the BoostConfig.cmake included with the boost distribution.
18+ cmake_policy (SET CMP0167 NEW )
19+ endif ()
20+
1421project (
1522 foxy
1623
@@ -30,7 +37,6 @@ include(${CMAKE_FILES}/certify.cmake)
3037find_package (
3138 Boost ${foxy_minimum_boost_version}
3239 REQUIRED
33- system
3440 date_time
3541)
3642
@@ -148,7 +154,6 @@ target_link_libraries(
148154
149155 PUBLIC
150156 Boost::boost
151- Boost::system
152157 Boost::date_time
153158 OpenSSL::SSL
154159 Threads::Threads
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ endif ()
1010
1111FetchContent_Declare (certify
1212 GIT_REPOSITORY https://github.com/launchdarkly/certify.git
13- GIT_TAG 7116dd0e609ae44d037aa562736d3d59fce1b637
13+ GIT_TAG 71023298ae232ee01cc7c4c80ea19b7b12bfeb19
1414)
1515
1616# The tests in certify don't compile.
You can’t perform that action at this time.
0 commit comments