Skip to content

Commit aa1250c

Browse files
authored
Merge branch 'main' into rlamb/disambiguate-sequence-boost-json
2 parents 813a37c + 0d11043 commit aa1250c

10 files changed

Lines changed: 35 additions & 6 deletions

File tree

.github/actions/install-boost/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}
1720
runs:
1821
using: composite
1922
steps:
@@ -33,6 +36,7 @@ runs:
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

.github/actions/install-openssl/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runs:
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

.github/actions/sdk-release/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 }}

.github/workflows/hello-apps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
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)

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ if (POLICY CMP0144)
2121
cmake_policy(SET CMP0144 NEW)
2222
endif ()
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+
2432
option(BUILD_TESTING "Top-level switch for testing. Turn off to disable unit and contract tests." ON)
2533

2634
option(LD_BUILD_SHARED_LIBS "Build the SDKs as shared libraries" OFF)

cmake/launchdarklyConfig.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ if (NOT DEFINED Boost_USE_STATIC_LIBS)
88
endif ()
99
endif ()
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+
1118
find_dependency(Boost 1.81 COMPONENTS json url coroutine)
1219
find_dependency(OpenSSL)
1320
find_dependency(tl-expected)

cmake/rfc3339_timestamp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FetchContent_Declare(timestamp
55

66
FetchContent_GetProperties(timestamp)
77
if (NOT timestamp_POPULATED)
8-
FetchContent_Populate(timestamp)
8+
FetchContent_MakeAvailable(timestamp)
99
endif ()
1010

1111
add_library(timestamp OBJECT

scripts/run-hello-apps.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ cd build-"$1" || exit
4040
# script ends.
4141
trap cleanup EXIT
4242

43+
echo Boost dir $Boost_DIR
44+
echo Boost root $BOOST_ROOT
45+
4346
cmake -G Ninja -D CMAKE_BUILD_TYPE=Release \
4447
-D BUILD_TESTING=OFF \
4548
-D LD_BUILD_SHARED_LIBS=$dynamic_linkage \

vendor/foxy/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ cmake_minimum_required(VERSION 3.13)
1111

1212
set(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+
1421
project(
1522
foxy
1623

@@ -30,7 +37,6 @@ include(${CMAKE_FILES}/certify.cmake)
3037
find_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

vendor/foxy/cmake/certify.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ endif ()
1010

1111
FetchContent_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.

0 commit comments

Comments
 (0)