if(VCPKG_TARGET_IS_WINDOWS) set(VCPKG_BUILD_TYPE release) # Windows port only includes headers. endif() vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO "microsoft/LinuxTracepoints" REF 3173fa8180eb5bb7167a686c8c18baf8ef0bf31b SHA512 9bd2e16da96e37df58e4281d1341051eb90574cb29d380f04f90bba7507dc9b3037ded91206d5e1808b53734fc0fc1fd06c4a220b0f34d0078ac168e6c639462 HEAD_REF main) vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}/libtracepoint" OPTIONS -DBUILD_SAMPLES=OFF -DBUILD_TESTS=OFF) vcpkg_cmake_install() vcpkg_copy_pdbs() vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") if(NOT VCPKG_TARGET_IS_WINDOWS) vcpkg_cmake_config_fixup( PACKAGE_NAME tracepoint CONFIG_PATH lib/cmake/tracepoint DO_NOT_DELETE_PARENT_CONFIG_PATH) endif() vcpkg_cmake_config_fixup( PACKAGE_NAME tracepoint-headers CONFIG_PATH lib/cmake/tracepoint-headers) if(VCPKG_TARGET_IS_WINDOWS) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") endif() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")