Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.2
-
None
-
-
86d93cc34 (dev)
Description
If I write in my CMake file:
if(NOT LINUX) set (deploy_tool_options_arg "-verbose=2") if(APPLE) set(deploy_tool_options_arg "${deploy_tool_options_arg} -hardened-runtime -no-strip") set(deploy_tool_options_arg "${deploy_tool_options_arg} -codesign=\"Developer ID Application: David Partridge (VH8AYT3C7Y)\"") elseif(WIN32) set(deploy_tool_options_arg "${deploy_tool_options_arg} --pdb") endif() # Generate a deployment script to be executed at install time # App bundles on macOS have an .app suffix if(APPLE) set(executable_path "${CMAKE_CURRENT_BINARY_DIR}/$<TARGET_FILE_NAME:DeepSkyStacker>.app") else() message ("Target filename:" $<TARGET_FILE_NAME:DeepSkyStacker>) set(executable_path "${CMAKE_CURRENT_BINARY_DIR}/$<TARGET_FILE_NAME:DeepSkyStacker>") endif() message ("executable_path: " ${executable_path}) message ("deploy tools options arg: " ${deploy_tool_options_arg}) qt_generate_deploy_script( TARGET DeepSkyStacker OUTPUT_SCRIPT deploy_script CONTENT " qt_deploy_runtime_dependencies( EXECUTABLE \"${executable_path}\" DEPLOY_TOOL_OPTIONS ${deploy_tool_options_arg} )" ) else()
Then I see this in the CMake output:
1> [CMake] deploy tools options arg: -verbose=2 -hardened-runtime -no-strip -codesign="Developer ID Application: David Partridge (VH8AYT3C7Y)" but when I run the Install I see: {code:java} [165/166] Install the project... -- Install configuration: "Debug" -- Running Qt deploy tool for /Users/amonra/.vs/DSS/out/build/DeepSkyStacker/DeepSkyStacker.app in working directory '/Users/amonra/.vs/DSS/Darwin/arm64/Debug' CMake Warning (dev) at .qt/deploy_DeepSkyStacker_82fa18ff01.cmake:7: Syntax Warning in cmake code at column 79 Argument not separated from preceding token by whitespace. Call Stack (most recent call first): DeepSkyStacker/cmake_install.cmake:41 (include) cmake_install.cmake:52 (include) This warning is for project developers. Use -Wno-dev to suppress it. '/opt/Qt/6.8.2/macos/bin/macdeployqt' '/Users/amonra/.vs/DSS/out/build/DeepSkyStacker/DeepSkyStacker.app' '-appstore-compliant' '-always-overwrite' '-verbose=2' '-hardened-runtime' '-no-strip' '-codesign=' 'Developer ID Application: David Partridge (VH8AYT3C7Y)' Log: Log: Deploying Qt frameworks found inside: QList("/Users/amonra/.vs/DSS/out/build/DeepSkyStacker/DeepSkyStacker.app/Contents/MacOS/DeepSkyStacker") : : Log: Signing "/Users/amonra/.vs/DSS/out/build/DeepSkyStacker/DeepSkyStacker.app" with identity ""
and all the codesign commands fail with "Identity not found"