2019-04-15 13:21:25 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO skystrife/cpptoml
|
2023-10-18 02:36:23 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 14edce576514d53a7e13562d7f8d2b66ea2b95f44038396c0e26232ec81783042ebecec31ee272a99afef96d5c8582a8e81ea5167a787844b98de6ee6f545cc5
|
2019-04-15 13:21:25 +02:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-10-18 02:36:23 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_MINGW)
|
|
|
|
list(APPEND OPTIONS -DENABLE_LIBCXX=OFF)
|
|
|
|
endif()
|
|
|
|
|
2023-01-05 01:09:33 +03:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-10-18 02:36:23 +08:00
|
|
|
${OPTIONS}
|
2023-01-05 01:09:33 +03:00
|
|
|
-DCPPTOML_BUILD_EXAMPLES=OFF
|
2023-08-02 20:00:20 +02:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
2023-01-05 01:09:33 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2019-04-15 13:21:25 +02:00
|
|
|
|
2023-01-05 01:09:33 +03:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|