summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/maps
diff options
context:
space:
mode:
authorAnu Aliyas <anu.aliyas@qt.io>2023-07-28 14:24:33 +0200
committerAnu Aliyas <anu.aliyas@qt.io>2023-08-01 09:10:14 +0200
commit5dd2670d66f568b3c688853df1dbc6f785ee9df4 (patch)
tree1e9fafe30b561e592104dc9a6c3dacf62742538e /examples/webenginewidgets/maps
parent3801a9244cb57bfb6b6b08be652f42a135b71142 (diff)
Fix compilation issue on MAC OS with -debug-and-release configure option
- Updated the application's path for code signing. Change-Id: I8469d573ba5f952d02734bc75e33b34f0c6e4494 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'examples/webenginewidgets/maps')
-rw-r--r--examples/webenginewidgets/maps/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/webenginewidgets/maps/CMakeLists.txt b/examples/webenginewidgets/maps/CMakeLists.txt
index 524892957..78ff7ed41 100644
--- a/examples/webenginewidgets/maps/CMakeLists.txt
+++ b/examples/webenginewidgets/maps/CMakeLists.txt
@@ -38,8 +38,14 @@ if (APPLE)
if (NOT CMAKE_GENERATOR STREQUAL "Xcode")
# Need to sign application for location permissions to work
+ if(QT_FEATURE_debug_and_release)
+ set(exe_path "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/")
+ else()
+ unset(exe_path)
+ endif()
add_custom_command(TARGET maps
- POST_BUILD COMMAND codesign -s - maps.app)
+ POST_BUILD COMMAND codesign --force -s - ${exe_path}maps.app
+ )
endif()
endif()