diff options
| author | Andrew Male <amale@zibings.com> | 2017-11-11 07:27:31 -0500 |
|---|---|---|
| committer | Andrew Male <amale@zibings.com> | 2017-11-11 07:27:31 -0500 |
| commit | b5afd00ad632ab144555e9bc1e106b84e11cd040 (patch) | |
| tree | 84fa5f972ddb5d4dd8de25ab83a6b1dc6d53fa76 | |
| parent | 50f6bc4e8f103c695f8754962dde0be03e32cbc5 (diff) | |
| download | vcpkg-b5afd00ad632ab144555e9bc1e106b84e11cd040.tar.gz vcpkg-b5afd00ad632ab144555e9bc1e106b84e11cd040.zip | |
Modifying libwebsockets portfile to account for static triplets
| -rw-r--r-- | ports/libwebsockets/portfile.cmake | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ports/libwebsockets/portfile.cmake b/ports/libwebsockets/portfile.cmake index 43502a52a..fa5ecfd8f 100644 --- a/ports/libwebsockets/portfile.cmake +++ b/ports/libwebsockets/portfile.cmake @@ -17,10 +17,19 @@ vcpkg_apply_patches( ${CMAKE_CURRENT_LIST_DIR}/0001-Fix-UWP.patch ) +if(VCPKG_CRT_LINKAGE STREQUAL static) + set(LWS_MSVC_STATIC_RUNTIME ON) + set(LWS_MSVC_SHARED_RUNTIME OFF) +else() + set(LWS_MSVC_STATIC_RUNTIME OFF) + set(LWS_MSVC_SHARED_RUNTIME ON) +endif() + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} OPTIONS - -DLWS_WITH_STATIC=OFF + -DLWS_WITH_STATIC=${LWS_MSVC_STATIC_RUNTIME} + -DLWS_WITH_SHARED=${LWS_MSVC_SHARED_RUNTIME} -DLWS_USE_BUNDLED_ZLIB=OFF -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON |
