Merge remote-tracking branch 'origin/master' into blender2.8
[blender.git] / build_files / cmake / macros.cmake
index 3dc6f599c69e2039d426d08c52075b683c16979f..9d679dc9b8f1c1263e6580b65e9190fa04542541 100644 (file)
@@ -1195,7 +1195,11 @@ function(delayed_do_install
                foreach(i RANGE ${n})
                        list(GET files ${i} f)
                        list(GET destinations ${i} d)
-                       install(FILES ${f} DESTINATION ${targetdir}/${d})
+                       if(NOT IS_ABSOLUTE ${d})
+                               install(FILES ${f} DESTINATION ${targetdir}/${d})
+                       else()
+                               install(FILES ${f} DESTINATION ${d})
+                       endif()
                endforeach()
        endif()
 endfunction()