diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-06-27 11:24:31 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-06-27 11:24:31 -0700 |
| commit | e8f819e04e6aed6327537f954a9eda02fca49d1a (patch) | |
| tree | 459904c60aee50b62ba82437221d8ede30724e37 /scripts | |
| parent | 5c93bc0102c2c90c31c14f7a978c946adc0ea904 (diff) | |
| download | vcpkg-e8f819e04e6aed6327537f954a9eda02fca49d1a.tar.gz vcpkg-e8f819e04e6aed6327537f954a9eda02fca49d1a.zip | |
[vcpkg-fixup-cmake-targets] Fix bug when port has no unused cmake config files.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/cmake/vcpkg_fixup_cmake_targets.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_fixup_cmake_targets.cmake b/scripts/cmake/vcpkg_fixup_cmake_targets.cmake index c56b96ccc..6fa096cbd 100644 --- a/scripts/cmake/vcpkg_fixup_cmake_targets.cmake +++ b/scripts/cmake/vcpkg_fixup_cmake_targets.cmake @@ -73,7 +73,9 @@ function(vcpkg_fixup_cmake_targets) "${DEBUG_SHARE}/*[Cc]onfigVersion.cmake" "${DEBUG_SHARE}/*[Cc]onfig-version.cmake" ) - file(REMOVE ${UNUSED_FILES}) + if(UNUSED_FILES) + file(REMOVE ${UNUSED_FILES}) + endif() file(GLOB RELEASE_TARGETS "${RELEASE_SHARE}/*[Tt]argets-release.cmake" |
