Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1@PACKAGE_INIT@3# CMake find_package compatible package file, for downstream CMake projects4#5# Based on https://cmake.org/cmake/help/latest/guide/importing-exporting/index.html#adding-components7set(_Libmultiprocess_supported_components Bin Lib)9# If no components specified, include all components.10list(LENGTH ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS_len)11if(${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS_len EQUAL 0)12set(${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS ${_Libmultiprocess_supported_components})13endif()15if ("Bin" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS)16include("${CMAKE_CURRENT_LIST_DIR}/TargetCapnpSources.cmake")17endif()19if ("Lib" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS)20# Setting FOUND_LIBATOMIC is needed on Debian & Ubuntu systems to work around bug in21# their capnproto packages. See compat_find.cmake for a more complete explanation.22set(FOUND_LIBATOMIC TRUE)23include(CMakeFindDependencyMacro)24find_dependency(CapnProto)25endif()27foreach(_comp ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})28if (NOT _comp IN_LIST _Libmultiprocess_supported_components)29set(${CMAKE_FIND_PACKAGE_NAME}_FOUND False)30set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")31endif()32include("${CMAKE_CURRENT_LIST_DIR}/${_comp}Targets.cmake")33endforeach()
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.