diff --git a/qad/QADDeploy.cmake b/qad/QADDeploy.cmake index a1ee20b..a49e997 100644 --- a/qad/QADDeploy.cmake +++ b/qad/QADDeploy.cmake @@ -167,7 +167,10 @@ macro(deploy_target _T) if (NOT _II) #message("depend on ${_L}") set(_DEP_LIBPATH "${_DEP_LIBPATH};$") - set(_DEP_LIBS "${_DEP_LIBS} $/$") + get_target_property(_LT ${_L} TYPE) + if ("x${_LT}" STREQUAL "SHARED_LIBRARY") + set(_DEP_LIBS "${_DEP_LIBS} $/$") + endif() endif() endif() endforeach()