1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

install main lib only if it's shared

This commit is contained in:
Andrey Filipenkov 2022-08-03 10:46:51 +03:00
parent ad256cd11f
commit 6642592567

View File

@ -494,7 +494,9 @@ macro(add_main_lib TARGET_NAME LIBRARY_TYPE)
add_dependencies(${TARGET_NAME} update_version)
endif()
if("${LIBRARY_TYPE}" STREQUAL SHARED)
install(TARGETS ${TARGET_NAME} RUNTIME DESTINATION ${LIB_DIR} LIBRARY DESTINATION ${LIB_DIR} COMPONENT core)
endif()
if(APPLE_IOS)
get_target_property(LINKED_LIBS ${TARGET_NAME} LINK_LIBRARIES)
foreach(LINKED_LIB IN LISTS LINKED_LIBS)