We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LINK_WITH_STATIC_LIBRARIES
1 parent 7c9f77b commit be32034Copy full SHA for be32034
README.md
@@ -301,6 +301,8 @@ compiler and linker. These flags are rarely used but can be useful for
301
- `CMAKE_FIND_ROOT_PATH`: Override the search path for libraries
302
- `ZLIB_LIBRARY`, `OPENSSL_SSL_LIBRARY` AND `OPENSSL_CRYPTO_LIBRARY`:
303
Tell CMake where to find those specific libraries
304
+- `LINK_WITH_STATIC_LIBRARIES`: Link only with static versions of
305
+system libraries
306
307
MacOS X
308
-------
cmake/DefaultCFlags.cmake
@@ -92,7 +92,7 @@ else()
92
set(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -D <TARGET>")
93
endif()
94
95
- if(NOT APPLE AND NOT BUILD_SHARED_LIBS)
+ if(NOT BUILD_SHARED_LIBS AND LINK_WITH_STATIC_LIBRARIES)
96
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
97
98
0 commit comments