diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-07-26 17:32:48 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-07-26 18:08:58 +0200 |
commit | 05ca0aa8f612ee48fb66d4dbebe596b7f1e03181 (patch) | |
tree | 613d0c2362fdb62df42ce54aae12362ff0d7d2ec /libtransport | |
parent | 7ceadff88f62665194deb12ca0926f5dcd6d3f48 (diff) |
[HICN-253] Mark cmake target for library as static or shared.
Change-Id: I1e8a14f9255f04bddbb87f74a6d6163a02dedb22
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport')
-rw-r--r-- | libtransport/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libtransport/CMakeLists.txt b/libtransport/CMakeLists.txt index d70a837b9..4ae46bb9a 100644 --- a/libtransport/CMakeLists.txt +++ b/libtransport/CMakeLists.txt @@ -81,16 +81,17 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) find_package_wrapper(HicnBinaryApi REQUIRED) endif() set(LIBTRANSPORT hicntransport) + set(LIBTRANSPORT_SHARED ${LIBTRANSPORT}.shared) + set(LIBTRANSPORT_STATIC ${LIBTRANSPORT}.static) else() if (ANDROID_API) - set(HICN_LIBRARIES ${LIBHICN}) + set(HICN_LIBRARIES ${LIBHICN_STATIC}) list(APPEND DEPENDENCIES - ${LIBHICN} + ${LIBHICN_STATIC} ) else () set(HICN_LIBRARIES ${LIBHICN_SHARED}) list(APPEND DEPENDENCIES - ${LIBHICN} ${LIBHICN_SHARED} ) endif () |