mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-27 14:00:10 +00:00
Make sure Windows DLL dependencies exist before trying to copy them (some may be static libs)
Fixes #768
This commit is contained in:
parent
60cf73d550
commit
6a19a2aeec
@ -710,12 +710,14 @@ macro(_add_glfw_executable target)
|
||||
foreach (LIB ${LIBRARIES} )
|
||||
string(REPLACE ".lib" ".dll" DLL ${LIB})
|
||||
string(REPLACE ".LIB" ".DLL" DLL ${DLL})
|
||||
add_custom_command(
|
||||
TARGET ${target} POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${DLL}
|
||||
$<TARGET_FILE_DIR:${target}>
|
||||
)
|
||||
if (EXISTS ${DLL})
|
||||
add_custom_command(
|
||||
TARGET ${target} POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${DLL}
|
||||
$<TARGET_FILE_DIR:${target}>
|
||||
)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user