Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (12 sloc) 0.377 kB
# CopyIfNotExists, written by Hugo Leisink <hugo@leisink.net>
#
install(CODE "
macro(copy_if_not_exists SRC DEST)
get_filename_component(filename \${SRC} NAME)
if(NOT EXISTS \"\$ENV{DESTDIR}/\${DEST}/\${filename}\")
file(INSTALL \"\${SRC}\" DESTINATION \"\${DEST}\")
else()
message(\"-- Skipping : \$ENV{DESTDIR}/\${DEST}/\${filename}\")
endif()
endmacro()
")
Jump to Line
Something went wrong with that request. Please try again.