Skip to content

Commit 1f2b753

Browse files
Use Boost::json in olp-cpp-sdk-authentication
Migrating from RapidJSON Relates-To: OCMAM-443 Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent a47ef51 commit 1f2b753

18 files changed

+397
-361
lines changed

olp-cpp-sdk-authentication/CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
project(olp-cpp-sdk-authentication VERSION 1.24.0)
1919
set(DESCRIPTION "C++ API library for accessing HERE Account authentication service")
2020

21+
find_package(Boost REQUIRED)
22+
2123
file(GLOB_RECURSE AUTHENTICATION_INC "include/*.h*")
2224
file(GLOB_RECURSE AUTHENTICATION_SRC "src/*.*")
2325

@@ -27,6 +29,7 @@ add_library(${PROJECT_NAME}
2729

2830
target_include_directories(${PROJECT_NAME} PUBLIC
2931
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
32+
$<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
3033
$<INSTALL_INTERFACE:include>)
3134

3235
# Used also in the package config file
@@ -43,10 +46,17 @@ if (MINGW)
4346
endif()
4447

4548
target_compile_definitions(${PROJECT_NAME}
46-
PRIVATE AUTHENTICATION_LIBRARY)
49+
PRIVATE
50+
AUTHENTICATION_LIBRARY
51+
BOOST_ALL_NO_LIB
52+
BOOST_JSON_NO_LIB)
4753
if(BUILD_SHARED_LIBS)
4854
target_compile_definitions(${PROJECT_NAME}
49-
PUBLIC AUTHENTICATION_SHARED_LIBRARY)
55+
PUBLIC
56+
AUTHENTICATION_SHARED_LIBRARY
57+
PRIVATE
58+
BOOST_ALL_NO_LIB
59+
BOOST_JSON_NO_LIB)
5060
endif()
5161

5262
# install component

0 commit comments

Comments
 (0)