From 0251633a2b67a52c261d0dc2016409e6eec82c8a Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Wed, 21 Jul 2021 12:04:55 +0200 Subject: [PATCH] installing e57 only when shared lib --- src/external/e57.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/external/e57.cmake b/src/external/e57.cmake index 92dcb9d11..be787f49f 100644 --- a/src/external/e57.cmake +++ b/src/external/e57.cmake @@ -21,7 +21,10 @@ if (TARGET external-xerces) set(MESSAGE_QUIET ON) add_subdirectory(e57 EXCLUDE_FROM_ALL) unset(MESSAGE_QUIET) - install(TARGETS E57Format DESTINATION ${MESHLAB_LIB_INSTALL_DIR}) + get_target_property(target_type E57Format TYPE) + if (target_type STREQUAL "SHARED_LIBRARY") + install(TARGETS E57Format DESTINATION ${MESHLAB_LIB_INSTALL_DIR}) + endif () add_library(external-libE57Format INTERFACE) target_link_libraries(external-libE57Format INTERFACE E57Format)