diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2014-01-07 16:05:41 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2014-01-07 16:07:00 +0100 |
| commit | 8bcbfb16427baaaf27898f732e7287c693f041f2 (patch) | |
| tree | 1ebe0d9cc7d96241e9140cf047f237be250a62c4 /cmake/Modules/MacroCopyFile.cmake | |
| parent | aecd952d18e249f7331f994ade15f3e74395fcd7 (diff) | |
| download | libssh-8bcbfb16427baaaf27898f732e7287c693f041f2.tar.gz libssh-8bcbfb16427baaaf27898f732e7287c693f041f2.tar.xz libssh-8bcbfb16427baaaf27898f732e7287c693f041f2.zip | |
cmake: Remove unused macro modules.
Diffstat (limited to 'cmake/Modules/MacroCopyFile.cmake')
| -rw-r--r-- | cmake/Modules/MacroCopyFile.cmake | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/cmake/Modules/MacroCopyFile.cmake b/cmake/Modules/MacroCopyFile.cmake deleted file mode 100644 index cee1cae3..00000000 --- a/cmake/Modules/MacroCopyFile.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# - macro_copy_file(_src _dst) -# Copies a file to ${_dst} only if ${_src} is different (newer) than ${_dst} -# -# Example: -# macro_copy_file(${CMAKE_CURRENT_SOURCE_DIR}/icon.png ${CMAKE_CURRENT_BINARY_DIR}/.) -# Copies file icon.png to ${CMAKE_CURRENT_BINARY_DIR} directory -# -# Copyright (c) 2006-2007 Wengo -# Copyright (c) 2006-2008 Andreas Schneider <mail@cynapses.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING file. - - -macro (macro_copy_file _src _dst) - # Removes all path containing .svn or CVS or CMakeLists.txt during the copy - if (NOT ${_src} MATCHES ".*\\.svn|CVS|CMakeLists\\.txt.*") - - if (CMAKE_VERBOSE_MAKEFILE) - message(STATUS "Copy file from ${_src} to ${_dst}") - endif (CMAKE_VERBOSE_MAKEFILE) - - # Creates directory if necessary - get_filename_component(_path ${_dst} PATH) - file(MAKE_DIRECTORY ${_path}) - - execute_process( - COMMAND - ${CMAKE_COMMAND} -E copy_if_different ${_src} ${_dst} - OUTPUT_QUIET - ) - endif (NOT ${_src} MATCHES ".*\\.svn|CVS|CMakeLists\\.txt.*") -endmacro (macro_copy_file) |
