diff options
| author | manuel <manuel@mausz.at> | 2021-03-04 23:36:40 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2021-03-04 23:36:40 +0100 |
| commit | 3cb8aa05f8cee9e860cf83531682ff0ed4af6a4f (patch) | |
| tree | 921f4829b32126f80f9113c124f2e14c0ebce8d9 /cmake/scripts/common/Macros.cmake | |
| parent | be933ef2241d79558f91796cc5b3a161f72ebf9c (diff) | |
| download | kodi-pvr-build-Matrix.tar.gz kodi-pvr-build-Matrix.tar.bz2 kodi-pvr-build-Matrix.zip | |
sync with upstreamMatrix
Diffstat (limited to 'cmake/scripts/common/Macros.cmake')
| -rw-r--r-- | cmake/scripts/common/Macros.cmake | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake index d896651..757d3ee 100644 --- a/cmake/scripts/common/Macros.cmake +++ b/cmake/scripts/common/Macros.cmake | |||
| @@ -221,11 +221,19 @@ function(copy_file_to_buildtree file) | |||
| 221 | endif() | 221 | endif() |
| 222 | 222 | ||
| 223 | if(NOT file STREQUAL ${CMAKE_BINARY_DIR}/${outfile}) | 223 | if(NOT file STREQUAL ${CMAKE_BINARY_DIR}/${outfile}) |
| 224 | if(VERBOSE) | 224 | if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows" OR NOT IS_SYMLINK "${file}") |
| 225 | message(STATUS "copy_file_to_buildtree - copying file: ${file} -> ${CMAKE_BINARY_DIR}/${outfile}") | 225 | if(VERBOSE) |
| 226 | message(STATUS "copy_file_to_buildtree - copying file: ${file} -> ${CMAKE_BINARY_DIR}/${outfile}") | ||
| 227 | endif() | ||
| 228 | file(APPEND ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/ExportFiles.cmake | ||
| 229 | "file(COPY \"${file}\" DESTINATION \"${CMAKE_BINARY_DIR}/${outdir}\")\n" ) | ||
| 230 | else() | ||
| 231 | if(VERBOSE) | ||
| 232 | message(STATUS "copy_file_to_buildtree - copying symlinked file: ${file} -> ${CMAKE_BINARY_DIR}/${outfile}") | ||
| 233 | endif() | ||
| 234 | file(APPEND ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/ExportFiles.cmake | ||
| 235 | "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E copy_if_different \"${file}\" \"${CMAKE_BINARY_DIR}/${outfile}\")\n") | ||
| 226 | endif() | 236 | endif() |
| 227 | file(APPEND ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/ExportFiles.cmake | ||
| 228 | "file(COPY \"${file}\" DESTINATION \"${CMAKE_BINARY_DIR}/${outdir}\")\n") | ||
| 229 | endif() | 237 | endif() |
| 230 | 238 | ||
| 231 | if(NOT arg_NO_INSTALL) | 239 | if(NOT arg_NO_INSTALL) |
