build: not using cache to store global state for macOS signing

This commit is contained in:
Luiz Sardinha
2026-03-06 17:58:36 +01:00
committed by Nick Bolton
parent 11871d343d
commit 6657bdd9b1

View File

@ -18,8 +18,10 @@
function(configure_mac_codesign target)
set_property(GLOBAL APPEND PROPERTY _MAC_CODESIGN_DEPENDS $<TARGET_FILE:${target}>)
if(NOT _MAC_CODESIGN_DEFERRED)
set(_MAC_CODESIGN_DEFERRED TRUE CACHE INTERNAL "")
get_property(deferred GLOBAL PROPERTY _MAC_CODESIGN_DEFERRED)
if(NOT deferred)
set_property(GLOBAL PROPERTY _MAC_CODESIGN_DEFERRED TRUE)
message(STATUS "Apple codesign ID for development only: ${APPLE_CODESIGN_DEV}")
cmake_language(DEFER DIRECTORY ${CMAKE_SOURCE_DIR} CALL _finalize_mac_codesign)
endif()