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/libwebsockets | |
| parent | 4c382b02c73b234122e204d4db709d5a677a3e5e (diff) | |
| download | vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.tar.gz vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.zip | |
Introduce SOURCE_PATH to almost all portfiles
Diffstat (limited to 'ports/libwebsockets')
| -rw-r--r-- | ports/libwebsockets/portfile.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/libwebsockets/portfile.cmake b/ports/libwebsockets/portfile.cmake index 7b8a2c918..3c0ee7ae1 100644 --- a/ports/libwebsockets/portfile.cmake +++ b/ports/libwebsockets/portfile.cmake @@ -1,4 +1,5 @@ include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0) vcpkg_download_distfile(ARCHIVE URLS "https://github.com/warmcat/libwebsockets/archive/v2.0.0.zip" FILENAME "libwebsockets-v2.0.0.zip" @@ -7,7 +8,7 @@ vcpkg_download_distfile(ARCHIVE vcpkg_extract_source_archive(${ARCHIVE}) vcpkg_configure_cmake( - SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0 + SOURCE_PATH ${SOURCE_PATH} OPTIONS -DLWS_WITH_STATIC=OFF -DLWS_USE_BUNDLED_ZLIB=OFF @@ -30,6 +31,6 @@ file(RENAME file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake) -file(COPY ${CURRENT_BUILDTREES_DIR}/src/libwebsockets-2.0.0/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libwebsockets) +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libwebsockets) file(RENAME ${CURRENT_PACKAGES_DIR}/share/libwebsockets/LICENSE ${CURRENT_PACKAGES_DIR}/share/libwebsockets/copyright) vcpkg_copy_pdbs() |
