File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,11 @@ foreach(lib ${lib_list})
53
53
message ("${lib} library is not found.
54
54
If needed rebuild with the proper options in CMakeLists.txt" )
55
55
else ()
56
- if ("${lib} " STREQUAL "extension_module" )
57
- if (CMAKE_TOOLCHAIN_IOS )
58
- # Building a share library on iOS requires code signing
59
- add_library (${lib} STATIC IMPORTED )
60
- else ()
61
- add_library (${lib} SHARED IMPORTED )
62
- endif ()
56
+ if ("${lib} " STREQUAL "extension_module" AND (NOT CMAKE_TOOLCHAIN_IOS ))
57
+ add_library (${lib} SHARED IMPORTED )
63
58
else ()
59
+ # Building a share library on iOS requires code signing, so it's easier
60
+ # to keep all libs as static when CMAKE_TOOLCHAIN_IOS is used
64
61
add_library (${lib} STATIC IMPORTED )
65
62
endif ()
66
63
set_target_properties (
You can’t perform that action at this time.
0 commit comments