1 # QuickCppLib is composed of other third party libraries:
7 # byte-lite and gsl-lite are in vcpkg, but may not be versions
8 # known to be compatible with QuickCppLib. It has occurred in the
9 # past that newer versions were severely broken with QuickCppLib.
11 include(${CURRENT_PORT_DIR}/sha_manifest.cmake)
14 QuickCppLib and its downstream dependencies Outcome and LLFIO were tested against gsl-lite version 0.37.0 and byte-lite version 0.2.0. They are not guaranteed to work with newer versions, with failures experienced in the past up-to-and-including runtime crashes. You can pin the versions as verified to work in QuickCppLib's CI in your manifest file by adding:
16 { "name": "gsl-lite", "version": "0.37.0" },
17 { "name": "byte-lite", "version": "0.2.0" }
19 Do not report issues to upstream without first pinning these previous versions.
23 OUT_SOURCE_PATH SOURCE_PATH
24 REPO ned14/quickcpplib
25 REF ${QUICKCPPLIB_REF}
26 SHA512 ${QUICKCPPLIB_SHA512}
29 quicklib-depheaders.patch
32 # Quickcpplib deploys subsets of the dependency headers into a private subdirectory
33 file(COPY "${CURRENT_INSTALLED_DIR}/include/nonstd/byte.hpp"
34 DESTINATION "${SOURCE_PATH}/include/quickcpplib/byte/include/nonstd")
35 file(COPY "${CURRENT_INSTALLED_DIR}/include/gsl/gsl-lite.hpp"
36 DESTINATION "${SOURCE_PATH}/include/quickcpplib/gsl-lite/include/gsl")
37 file(COPY "${CURRENT_INSTALLED_DIR}/include/gsl-lite/gsl-lite.hpp"
38 DESTINATION "${SOURCE_PATH}/include/quickcpplib/gsl-lite/include/gsl-lite")
41 OUT_SOURCE_PATH OPT_SOURCE_PATH
42 REPO akrzemi1/Optional
44 SHA512 ${OPTIONAL_SHA512}
48 file(COPY "${OPT_SOURCE_PATH}/." DESTINATION "${SOURCE_PATH}/include/quickcpplib/optional")
50 # Because quickcpplib's deployed files are header-only, the debug build it not necessary
51 set(VCPKG_BUILD_TYPE release)
53 # Use QuickCppLib's own build process, skipping examples and tests.
54 vcpkg_configure_cmake(
55 SOURCE_PATH "${SOURCE_PATH}"
58 -DPROJECT_IS_DEPENDENCY=On
59 -DQUICKCPPLIB_USE_VCPKG_BYTE_LITE=ON
60 -DQUICKCPPLIB_USE_VCPKG_GSL_LITE=ON
61 -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
62 -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
67 vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/quickcpplib)
69 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
70 file(RENAME "${CURRENT_PACKAGES_DIR}/share/cmakelib" "${CURRENT_PACKAGES_DIR}/share/ned14-internal-quickcpplib/cmakelib")
71 file(RENAME "${CURRENT_PACKAGES_DIR}/share/scripts" "${CURRENT_PACKAGES_DIR}/share/ned14-internal-quickcpplib/scripts")
73 file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
74 file(INSTALL "${SOURCE_PATH}/Licence.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)