diff options
Diffstat (limited to 'hicn-light/CMakeLists.txt')
-rw-r--r-- | hicn-light/CMakeLists.txt | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/hicn-light/CMakeLists.txt b/hicn-light/CMakeLists.txt index 70ca8ed15..489359baf 100644 --- a/hicn-light/CMakeLists.txt +++ b/hicn-light/CMakeLists.txt @@ -59,11 +59,18 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) set(HICN_LIGHT_CONTROL hicn-light-control) set(HICN_LIGHT_DAEMON hicn-light-daemon) else() - set(HICN_LIBRARIES ${LIBHICN_SHARED}) - set(DEPENDENCIES - ${LIBHICN} - ${LIBHICN_SHARED} - ) + if (ANDROID_API) + set(HICN_LIBRARIES ${LIBHICN}) + list(APPEND DEPENDENCIES + ${LIBHICN} + ) + else () + set(HICN_LIBRARIES ${LIBHICN_SHARED}) + list(APPEND DEPENDENCIES + ${LIBHICN} + ${LIBHICN_SHARED} + ) + endif () endif() include( Packaging ) |