diff options
author | Matt Stancliff <matt@genges.com> | 2017-01-12 13:41:40 +0800 |
---|---|---|
committer | Matt Stancliff <matt@genges.com> | 2017-01-12 13:46:22 +0800 |
commit | 63add73d0b5b49ea583e12610799d2de80877a7d (patch) | |
tree | 8050fa02ad107a7909fec0b076eeaa6278ec46ea /tls | |
parent | 9f9fdc05314a3a961fb78c9e7fd1c34fa24b5846 (diff) | |
download | portable-63add73d0b5b49ea583e12610799d2de80877a7d.tar.gz portable-63add73d0b5b49ea583e12610799d2de80877a7d.tar.bz2 portable-63add73d0b5b49ea583e12610799d2de80877a7d.zip |
Define CMake library object lists globally
OBJECT collections in CMake don't generate any artifacts so these
are safe to hoist out and define globally.
library OBJECT targets are just a list of filenames. It can be useful for
other projects to include lists of sources directly regardless of build mode
(shared, static, or library).
Diffstat (limited to 'tls')
-rw-r--r-- | tls/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index e384808..1f78038 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt | |||
@@ -29,8 +29,8 @@ else() | |||
29 | add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") | 29 | add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") |
30 | endif() | 30 | endif() |
31 | 31 | ||
32 | add_library(tls-objects OBJECT ${TLS_SRC}) | ||
32 | if (BUILD_SHARED) | 33 | if (BUILD_SHARED) |
33 | add_library(tls-objects OBJECT ${TLS_SRC}) | ||
34 | add_library(tls STATIC $<TARGET_OBJECTS:tls-objects>) | 34 | add_library(tls STATIC $<TARGET_OBJECTS:tls-objects>) |
35 | add_library(tls-shared SHARED $<TARGET_OBJECTS:tls-objects>) | 35 | add_library(tls-shared SHARED $<TARGET_OBJECTS:tls-objects>) |
36 | if (WIN32) | 36 | if (WIN32) |