mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 07:10:36 +08:00
a100b6b90e
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
40 lines
1.1 KiB
CMake
40 lines
1.1 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cesanta/mongoose
|
|
REF "${VERSION}"
|
|
SHA512 b36fb624f69f3bdd8431fe504173b7b4ec11942d3110b85b6a5bb70f97ba4b0ace182abe5f178fcf25c2d6831223e5b98a7521fa26672a17a7f199114986ada1
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
ssl ENABLE_SSL
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
|
|
|
|
if("ssl" IN_LIST FEATURES)
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}/unofficial-${PORT}-config.cmake"
|
|
[[# Generated by CMake]]
|
|
[[# Generated by CMake
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(OpenSSL)]])
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# Handle copyright
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|