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:
parent
ad256cd11f
commit
6642592567
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user