/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
cmake/module/AddWindowsResources.cmake
22 строки
929 B
Daniel Pfeifer
cmake: Unconditionally add .rc files to sources
10 авг 2026, 17:16
Не верифицирован
10 авг 2026, 17:16
99497b3
Код
Авторство
О чём код?
# Copyright (c) 2024-present The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/license/mit/. include_guard(GLOBAL) # Add a fusion manifest to Windows executables. # See: https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests function(add_windows_application_manifest target) configure_file(${PROJECT_SOURCE_DIR}/cmake/windows-app.manifest.in ${target}.manifest USE_SOURCE_PERMISSIONS) if(MSVC) target_sources(${target} PRIVATE ${target}.manifest) else() # TODO: Remove when upstream issue is fixed: # https://gitlab.kitware.com/cmake/cmake/-/issues/23244 file(CONFIGURE OUTPUT ${target}-manifest.rc CONTENT "1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ \"${target}.manifest\"" ) target_sources(${target} PRIVATE ${target}-manifest.rc) endif() endfunction()