Skip to content

Link Foundation framework to iOS core explicitly #1607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion olp-cpp-sdk-core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2019-2024 HERE Europe B.V.
# Copyright (C) 2019-2025 HERE Europe B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -524,10 +524,12 @@ if(IOS)
endif()

find_library(OLP_SDK_CORE_FOUNDATION_FRAMEWORK CoreFoundation)
find_library(OLP_SDK_FOUNDATION_FRAMEWORK Foundation)
find_library(OLP_SDK_SECURITY_FRAMEWORK Security)
find_library(OLP_SDK_CFNETWORK_FRAMEWORK CFNetwork)

target_link_libraries(${PROJECT_NAME} PRIVATE ${OLP_SDK_CORE_FOUNDATION_FRAMEWORK}
${OLP_SDK_FOUNDATION_FRAMEWORK}
${OLP_SDK_SECURITY_FRAMEWORK}
${OLP_SDK_CFNETWORK_FRAMEWORK})
elseif(ANDROID AND NOT OLP_SDK_ENABLE_ANDROID_CURL AND NOT OLP_SDK_ENABLE_OFFLINE_MODE)
Expand Down
Loading