From 52f0e2d94f3875fce7730f12b8866314f90e68d8 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Mon, 2 Oct 2023 22:50:15 -0400 Subject: [PATCH] Make sure to get the bundle path Signed-off-by: Geoff Hutchison --- avogadro/lastinstall/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avogadro/lastinstall/CMakeLists.txt b/avogadro/lastinstall/CMakeLists.txt index bfcb67de..567e5285 100644 --- a/avogadro/lastinstall/CMakeLists.txt +++ b/avogadro/lastinstall/CMakeLists.txt @@ -76,7 +76,8 @@ if((APPLE OR WIN32) AND NOT ${CMAKE_VERSION} VERSION_LESS 2.8.8) # Fixup the bundle install(CODE " include(BundleUtilities) - fixup_bundle(\"${exe}/..\" \"${plugins}\" \"${dirs}\") + get_property(bundle TARGET avogadro PROPERTY LOCATION_RELEASE) + fixup_bundle(\"${bundle}/..\" \"${plugins}\" \"${dirs}\") " COMPONENT Runtime) endif() endif()