[eigen3] Avoid calling file(REMOVE ...) with a blank argument

This commit is contained in:
Robert Schumacher 2016-09-29 13:10:51 -07:00
Родитель 91ec700f6c
Коммит 84e8641d0d
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -7,13 +7,15 @@ vcpkg_download_distfile(ARCHIVE
)
vcpkg_extract_source_archive(${ARCHIVE})
file(GLOB_RECURSE GARBAGE ${SOURCE_PATH}/Eigen/CMakeLists.*)
if(GARBAGE)
file(REMOVE ${GARBAGE})
endif()
# Put the licence file where vcpkg expects it
file(COPY ${SOURCE_PATH}/COPYING.README DESTINATION ${CURRENT_PACKAGES_DIR}/share/eigen3/COPYING.README)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/eigen3/COPYING.README ${CURRENT_PACKAGES_DIR}/share/eigen3/copyright)
file(GLOB_RECURSE GARBAGE ${SOURCE_PATH}/Eigen/CMakeLists.*)
file(REMOVE ${GARBAGE})
# Copy the eigen header files
file(COPY ${SOURCE_PATH}/Eigen/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/Eigen/)
vcpkg_copy_pdbs()