HDFFV-9875 Change test for shared libs

This commit is contained in:
Allen Byrne 2017-02-02 14:58:53 -06:00
parent b477d8142a
commit fb587185a2

View File

@ -44,11 +44,11 @@ endmacro ()
macro (INSTALL_TARGET_PDB libtarget targetdestination targetcomponent)
if (WIN32 AND MSVC)
get_target_property (target_type ${libtarget} TYPE)
if (target_type MATCHES "STATIC_LIBRARY")
if (${libtype} MATCHES "SHARED")
set (targetfilename $<TARGET_PDB_FILE:${libtarget}>)
else ()
get_property (target_name TARGET ${libtarget} PROPERTY OUTPUT_NAME_RELWITHDEBINFO)
set (targetfilename $<TARGET_FILE_DIR:${libtarget}>/${target_name}.pdb)
else ()
set (targetfilename $<TARGET_PDB_FILE:${libtarget}>)
endif ()
install (
FILES