aboutsummaryrefslogtreecommitdiffstats
path: root/utils/CMakeLists.txt
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-05-16 15:46:10 +0000
committerGerrit Code Review <gerrit@fd.io>2019-05-16 15:46:10 +0000
commit41ed041613107ae6f1bf9cae5147cfdc71a1ba54 (patch)
treec67e8bcd830e348c0a905fe52d48a248c0031132 /utils/CMakeLists.txt
parentdb8d063677b42c0ec8191728e55d1d5efef80822 (diff)
parent5c9b2cd16e76b7d731bd31422b4a555dbeff1541 (diff)
Merge "[HICN-195] Generate static libs for android"
Diffstat (limited to 'utils/CMakeLists.txt')
-rw-r--r--utils/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index b1993e740..c78110949 100644
--- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt
@@ -29,7 +29,12 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
find_package(Libtransport REQUIRED)
set(HICN_UTILS hicn-utils)
else()
- set(LIBTRANSPORT_LIBRARIES ${LIBTRANSPORT_SHARED})
+ if (ANDROID_API)
+ set(LIBTRANSPORT_LIBRARIES ${LIBTRANSPORT})
+ else ()
+ set(LIBTRANSPORT_LIBRARIES ${LIBTRANSPORT_SHARED})
+ endif ()
+
endif()
set(SUFFIX "")