Skip to content

Commit c251263

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 c251263

18 files changed

+392
-360
lines changed

olp-cpp-sdk-authentication/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
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,7 +46,10 @@ 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}
4955
PUBLIC AUTHENTICATION_SHARED_LIBRARY)

0 commit comments

Comments
 (0)