diff options
author | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2019-03-01 16:16:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-03-05 14:45:50 (GMT) |
commit | 4a9e2e4f3504b311097aa6715b3ebefa7997fd03 (patch) | |
tree | fd0db2a8902761289aae0fe73dbca0c04eb62b90 /Help | |
parent | 20a41aa589d4418f9ac46fc8c0402162d1d82873 (diff) | |
download | CMake-4a9e2e4f3504b311097aa6715b3ebefa7997fd03.zip CMake-4a9e2e4f3504b311097aa6715b3ebefa7997fd03.tar.gz CMake-4a9e2e4f3504b311097aa6715b3ebefa7997fd03.tar.bz2 |
Help: find_package with fat iOS libraries
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-toolchains.7.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Help/manual/cmake-toolchains.7.rst b/Help/manual/cmake-toolchains.7.rst index d214e4a..9317262 100644 --- a/Help/manual/cmake-toolchains.7.rst +++ b/Help/manual/cmake-toolchains.7.rst @@ -592,4 +592,14 @@ Please note that checks made during configuration were performed against the configure-time SDK and might not hold true for other SDKs. Commands like :command:`find_package`, :command:`find_library`, etc. store and use details only for the configured SDK/platform, so they can be problematic -if wanting to switch between device and simulator builds. +if wanting to switch between device and simulator builds. You can follow +the next rules to make device + simulator configuration work: + +- Use explicit ``-l`` linker flag, + e.g. ``target_link_libraries(foo PUBLIC "-lz")`` + +- Use explicit ``-framework`` linker flag, + e.g. ``target_link_libraries(foo PUBLIC "-framework CoreFoundation")`` + +- Use :command:`find_package` only for libraries installed with + :variable:`CMAKE_IOS_INSTALL_COMBINED` feature |