mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 10:27:50 +08:00
c95512aaf6
* Updates 2019.03.29 * Undo changes to 4 ports(rocksdb tbb thrift uwebsockets) due to failures * [folly] Fix target files in debug mode * Undo glog changes since it caused sophus openmvg and cartographer failures * Undo Folly changes since it cause wangle failed * Undo Folly portfile
34 lines
951 B
CMake
34 lines
951 B
CMake
include(vcpkg_common_functions)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
message("parson only supports static linkage")
|
|
set(VCPKG_LIBRARY_LINKAGE "static")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO kgabis/parson
|
|
REF 395e70d85b675e98efbb9ea6e534c0c9d089dc4e
|
|
SHA512 6d89239cca57912618b1d29d6b9654e701b9dcfddf19f897dac14f60a347221c2ad30562c5d85a704a5d4359d891a0d93bbe4671f5459a71fcb47f5a6f1b856d
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(COPY ${SOURCE_PATH}/parson.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-parson TARGET_PATH share/unofficial-parson)
|
|
|
|
file(INSTALL
|
|
${SOURCE_PATH}/LICENSE
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/parson RENAME copyright)
|
|
|
|
vcpkg_copy_pdbs()
|