diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-28 17:05:56 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-28 17:05:56 -0700 |
| commit | 36799555441089420f29fcb2724d9fde23bc9ec1 (patch) | |
| tree | 4a43133e1aa52ce71d8b9a85f4c6bd20a5d2ffa8 /ports/glm | |
| parent | 4c382b02c73b234122e204d4db709d5a677a3e5e (diff) | |
| download | vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.tar.gz vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.zip | |
Introduce SOURCE_PATH to almost all portfiles
Diffstat (limited to 'ports/glm')
| -rw-r--r-- | ports/glm/portfile.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ports/glm/portfile.cmake b/ports/glm/portfile.cmake index 715310149..33a16f9b8 100644 --- a/ports/glm/portfile.cmake +++ b/ports/glm/portfile.cmake @@ -1,4 +1,5 @@ include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glm) vcpkg_download_distfile(ARCHIVE URLS "https://github.com/g-truc/glm/releases/download/0.9.8.0/glm-0.9.8.0.zip" FILENAME "glm-0.9.8.0.zip" @@ -7,12 +8,12 @@ vcpkg_download_distfile(ARCHIVE vcpkg_extract_source_archive(${ARCHIVE}) # Remove glm/CMakeLists.txt -file(REMOVE ${CURRENT_BUILDTREES_DIR}/src/glm/glm/CMakeLists.txt) +file(REMOVE ${SOURCE_PATH}/glm/CMakeLists.txt) # Put the license file where vcpkg expects it -file(COPY ${CURRENT_BUILDTREES_DIR}/src/glm/copying.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glm/) +file(COPY ${SOURCE_PATH}/copying.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glm/) file(RENAME ${CURRENT_PACKAGES_DIR}/share/glm/copying.txt ${CURRENT_PACKAGES_DIR}/share/glm/copyright) # Copy the glm header files -file(GLOB HEADER_FILES ${CURRENT_BUILDTREES_DIR}/src/glm/glm/*) +file(GLOB HEADER_FILES ${SOURCE_PATH}/glm/*) file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/glm) |
