mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
install main lib only if it's shared
This commit is contained in:
@@ -494,7 +494,9 @@ macro(add_main_lib TARGET_NAME LIBRARY_TYPE)
|
||||
add_dependencies(${TARGET_NAME} update_version)
|
||||
endif()
|
||||
|
||||
install(TARGETS ${TARGET_NAME} RUNTIME DESTINATION ${LIB_DIR} LIBRARY DESTINATION ${LIB_DIR} COMPONENT core)
|
||||
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)
|
||||
|
Reference in New Issue
Block a user