Skip to content

Commit aff34d2

Browse files
OLP_SDK_ENABLE_IOS_BACKGROUND_DOWNLOAD IOS only (#1532)
Limiting users in adding options making no sense on some platforms In addition adding include related to iOS changes appeared on Android build no complains from XCode though. Relates-To: DATASDK-19 Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent b7a83c1 commit aff34d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

olp-cpp-sdk-core/CMakeLists.txt

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

412412
add_library(${PROJECT_NAME} ${OLP_SDK_CORE_SOURCES} ${OLP_SDK_CORE_HEADERS})
413413

414-
if (OLP_SDK_ENABLE_IOS_BACKGROUND_DOWNLOAD)
414+
if (IOS AND OLP_SDK_ENABLE_IOS_BACKGROUND_DOWNLOAD)
415415
target_compile_definitions(${PROJECT_NAME}
416416
PUBLIC OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD)
417417
endif()

olp-cpp-sdk-core/src/client/OlpClient.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#include <cctype>
2323
#include <chrono>
2424
#include <future>
25+
#ifdef OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
26+
#include <list>
27+
#endif // OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
2528
#include <sstream>
2629
#include <thread>
2730

0 commit comments

Comments
 (0)