rbutilqt/themeeditor: Move the CODESIGN_IDENTITY variable definition before the targets which depend on it.

Change-Id: I786be5b7dfaee94cf31ef9e72f43dce9700056c0
This commit is contained in:
Vencislav Atanasov 2026-09-20 22:09:09 +03:00
parent 6719578e29
commit 7f01029439
2 changed files with 16 additions and 13 deletions

View file

@ -124,6 +124,22 @@ else()
set(QUAZIP_LIBRARY quazip)
endif()
# Setup code signing for macOS
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CODESIGN_IDENTITY "-" CACHE STRING
"Code signing identity to use for macOS signing")
if(DEFINED ENV{CODESIGN_IDENTITY})
set(CODESIGN_IDENTITY "$ENV{CODESIGN_IDENTITY}")
endif()
if("${CODESIGN_IDENTITY}" STREQUAL "-")
message("-- Using ad-hoc Apple code signing")
else()
message("-- Using Apple code signing identity: ${CODESIGN_IDENTITY}")
endif()
endif()
add_executable(ipodpatcher-bin
ipodpatcher/main.c
ipodpatcher/ipodpatcher_aupd.c

View file

@ -94,19 +94,6 @@ endif()
# MacOS: Build dmg
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CODESIGN_IDENTITY "-" CACHE STRING
"Code signing identity to use for macOS signing")
if(DEFINED ENV{CODESIGN_IDENTITY})
set(CODESIGN_IDENTITY "$ENV{CODESIGN_IDENTITY}")
endif()
if("${CODESIGN_IDENTITY}" STREQUAL "-")
message("-- Using ad-hoc Apple code signing")
else()
message("-- Using Apple code signing identity: ${CODESIGN_IDENTITY}")
endif()
set(DMGBUILD_STAMP ${CMAKE_BINARY_DIR}/dmgbuild.stamp)
add_custom_command(
COMMENT "Setting up dmgbuild virtualenv"