Browse Source

Fix adding public static lib dependencies

experiment/srcref_basic_cfg
Martchus 5 years ago
parent
commit
472e0296d0
  1. 4
      cmake/modules/3rdParty.cmake

4
cmake/modules/3rdParty.cmake

@ -117,7 +117,7 @@ if(NOT DEFINED THIRD_PARTY_MODULE_LOADED)
endif()
if(${NAME} IN_LIST META_PUBLIC_STATIC_LIB_DEPENDS)
list(APPEND ${PRIVATE_STATIC_LIBRARIES_VARNAME} ${${NAME}_STATIC_LIB})
list(APPEND ${PUBLIC_STATIC_LIBRARIES_VARNAME} ${${NAME}_STATIC_LIB})
if(${NAME}_STATIC_INCLUDE_DIR)
list(APPEND PUBLIC_STATIC_INCLUDE_DIRS ${${NAME}_STATIC_INCLUDE_DIR})
endif()
@ -148,7 +148,7 @@ if(NOT DEFINED THIRD_PARTY_MODULE_LOADED)
endif()
if(${NAME} IN_LIST META_PUBLIC_SHARED_LIB_DEPENDS)
list(APPEND ${PRIVATE_STATIC_LIBRARIES_VARNAME} ${${NAME}_DYNAMIC_LIB})
list(APPEND ${PUBLIC_STATIC_LIBRARIES_VARNAME} ${${NAME}_DYNAMIC_LIB})
if(${NAME}_DYNAMIC_INCLUDE_DIR)
list(APPEND PUBLIC_STATIC_INCLUDE_DIRS ${${NAME}_DYNAMIC_INCLUDE_DIR})
endif()

Loading…
Cancel
Save