Skip to content

Commit a3bdc67

Browse files
Check OLP_SDK_ENABLE_ANDROID_CURL for Android only (#1363)
Make sure that OLP_SDK_ENABLE_ANDROID_CURL doesn't affect other platforms, as it should be possible to turn on this option without additional checks for platform. Relates-To: OLPSUP-20966 Signed-off-by: Andrey Kashcheev <ext-andrey.kashcheev@here.com>
1 parent c8aeb26 commit a3bdc67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

external/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ if(NOT TARGET Boost AND NOT Boost_FOUND)
104104
set(Boost_LIBRARY_DIR ${EXTERNAL_BOOST_ROOT_LIB} PARENT_SCOPE)
105105
endif()
106106

107-
if(OLP_SDK_ENABLE_ANDROID_CURL)
107+
if(ANDROID AND OLP_SDK_ENABLE_ANDROID_CURL)
108108
find_package(CURL 7.52.0 QUIET)
109109
if(NOT TARGET CURL AND NOT CURL_FOUND)
110110
add_subdirectory(curl)

olp-cpp-sdk-core/cmake/curl.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if(CURL_FOUND AND NOT NETWORK_NO_CURL)
2828
endif(APPLE)
2929
include_directories(${CURL_INCLUDE_DIRS})
3030

31-
if(OLP_SDK_ENABLE_ANDROID_CURL)
31+
if(ANDROID AND OLP_SDK_ENABLE_ANDROID_CURL)
3232
add_definitions(-DOLP_SDK_ENABLE_ANDROID_CURL)
3333
endif()
3434

0 commit comments

Comments
 (0)