summaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorImmanuel Haffner <haffner.immanuel@gmail.com>2019-11-22 22:48:46 +0100
committerAlon Zakai <azakai@google.com>2019-11-22 13:48:46 -0800
commitbf8f36c31c0b8e6213bce840be66937dd6d0f6af (patch)
tree33643f2479e22c5a653f85029bd8dff1ea16d551 /src/support
parente2587f30827cd3d35dd409c2958b25a6c5517092 (diff)
downloadbinaryen-bf8f36c31c0b8e6213bce840be66937dd6d0f6af.tar.gz
binaryen-bf8f36c31c0b8e6213bce840be66937dd6d0f6af.tar.bz2
binaryen-bf8f36c31c0b8e6213bce840be66937dd6d0f6af.zip
Build libbinaryen as a monolithic statically/shared library (#2463)
* Transform libraries created in subdirectories from statically linked libraries to CMake object libraries. * Link object libraries as `PRIVATE` to `libbinaryen`. According to CMake documentation: "Libraries and targets following PRIVATE are linked to, but are not made part of the link interface." This is exactly what we want, as we only want the C API to be part of the interface.
Diffstat (limited to 'src/support')
-rw-r--r--src/support/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/CMakeLists.txt b/src/support/CMakeLists.txt
index b3373d076..eaf608d58 100644
--- a/src/support/CMakeLists.txt
+++ b/src/support/CMakeLists.txt
@@ -8,5 +8,5 @@ SET(support_SOURCES
safe_integer.cpp
threads.cpp
)
-ADD_LIBRARY(support STATIC ${support_SOURCES})
+ADD_LIBRARY(support OBJECT ${support_SOURCES})
TARGET_LINK_LIBRARIES(support ${CMAKE_THREAD_LIBS_INIT})