diff options
| author | Erwan BERNARD <bernard.erwan@gmail.com> | 2018-10-25 18:32:23 +0200 |
|---|---|---|
| committer | Erwan BERNARD <bernard.erwan@gmail.com> | 2018-10-25 18:32:23 +0200 |
| commit | 6afbceb27fd2aa39c66f810a22f5d4ad97575110 (patch) | |
| tree | 05b09893bae027ef977dfb91b39bb216401b0224 | |
| parent | 370580020428176a8a8be73d57b2151fc05c5510 (diff) | |
| download | vcpkg-6afbceb27fd2aa39c66f810a22f5d4ad97575110.tar.gz vcpkg-6afbceb27fd2aa39c66f810a22f5d4ad97575110.zip | |
[realsense2] fix executable cleaning
| -rw-r--r-- | ports/realsense2/portfile.cmake | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/ports/realsense2/portfile.cmake b/ports/realsense2/portfile.cmake index c7c41e037..8db63f04d 100644 --- a/ports/realsense2/portfile.cmake +++ b/ports/realsense2/portfile.cmake @@ -47,11 +47,21 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) if(BUILD_EXAMPLES) - file(GLOB EXEFILES_RELEASE ${CURRENT_PACKAGES_DIR}/bin/*.exe) - file(GLOB EXEFILES_DEBUG ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe) - file(COPY ${EXEFILES_RELEASE} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/realsense2) - file(REMOVE ${EXEFILES_RELEASE} ${EXEFILES_DEBUG}) + file(GLOB EXEFILES_RELEASE ${CURRENT_PACKAGES_DIR}/bin/rs-* ${CURRENT_PACKAGES_DIR}/bin/realsense-*) + if (EXEFILES_RELEASE) + file(COPY ${EXEFILES_RELEASE} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/realsense2) + file(REMOVE ${EXEFILES_RELEASE}) + endif() + file(GLOB EXEFILES_DEBUG ${CURRENT_PACKAGES_DIR}/debug/bin/*) + if (EXEFILES_DEBUG) + file(REMOVE ${EXEFILES_RELEASE} ${EXEFILES_DEBUG}) + endif() vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/realsense2) + + file(GLOB BINS ${CURRENT_PACKAGES_DIR}/bin/*) + if(NOT BINS) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) + endif() endif() file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/realsense2) |
