|
@@ -155,7 +155,9 @@ function(igl_copy_imported_locations src_target dst_target)
|
|
get_target_property(configurations ${src_target} IMPORTED_CONFIGURATIONS)
|
|
get_target_property(configurations ${src_target} IMPORTED_CONFIGURATIONS)
|
|
foreach(config ${configurations})
|
|
foreach(config ${configurations})
|
|
get_target_property(location ${src_target} IMPORTED_LOCATION_${config})
|
|
get_target_property(location ${src_target} IMPORTED_LOCATION_${config})
|
|
- add_custom_command(TARGET ${dst_target} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${location}" $<TARGET_FILE_DIR:${dst_target}>)
|
|
|
|
|
|
+ if(EXISTS "${location}")
|
|
|
|
+ add_custom_command(TARGET ${dst_target} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${location}" $<TARGET_FILE_DIR:${dst_target}>)
|
|
|
|
+ endif()
|
|
endforeach()
|
|
endforeach()
|
|
endfunction()
|
|
endfunction()
|
|
|
|
|