vcpkg_check_linkage(ONLY_STATIC_LIBRARY) set(BDE_TOOLS_VERSION "${VERSION}") # Acquire Python and add it to PATH vcpkg_find_acquire_program(PYTHON3) get_filename_component(PYTHON3_EXE_PATH ${PYTHON3} DIRECTORY) # Acquire BDE Tools and add them to PATH vcpkg_from_github( OUT_SOURCE_PATH TOOLS_PATH REPO "bloomberg/bde-tools" REF "${BDE_TOOLS_VERSION}" SHA512 3c39da8d1ea40459e36e11ada93cc2821ae1b16a831f93cccab463996394a400cc08bb1654642eae1aa5187f139d7fb80c4729e464051eee182133eb8a74158d HEAD_REF main ) message(STATUS "Configure bde-tools-v${BDE_TOOLS_VERSION}") vcpkg_add_to_path("${PYTHON3_EXE_PATH}") vcpkg_add_to_path("${TOOLS_PATH}/bin") # Acquire BDE sources vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO "bloomberg/bde" REF "${VERSION}" SHA512 810b4a06a08739dcd990751dd543aa7dc58355f9d64a7c96ef0cf45c81501946434db42ad5bcf5d16110d5a463586b587ce09a446136e824298f39a8a871b490 HEAD_REF main ) vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DBDE_BUILD_TARGET_CPP17=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF -DBBS_BUILD_SYSTEM=1 "-DBdeBuildSystem_DIR:PATH=${TOOLS_PATH}/BdeBuildSystem" OPTIONS_RELEASE -DBDE_BUILD_TARGET_OPT=1 OPTIONS_DEBUG -DBDE_BUILD_TARGET_DBG=1 ) # Build release vcpkg_cmake_build() # Install release vcpkg_cmake_install() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/) # Handle copyright file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/bde RENAME copyright ) vcpkg_fixup_pkgconfig()