Skip to content

Commit 9ee75b1

Browse files
committed
Updated cmake bundle generation for macos
1 parent 527cbe7 commit 9ee75b1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/ngscopeclient/CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,10 @@ if(LINUX)
249249
endif()
250250

251251
if(APPLE)
252-
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR})
253-
install(CODE [[
254-
include(BundleUtilities)
255-
fixup_bundle("${CMAKE_INSTALL_PREFIX}/ngscopeclient-${NGSCOPECLIENT_VERSION}.app" "" "")
256-
]] COMPONENT Runtime)
252+
set(APPS "\${CMAKE_INSTALL_PREFIX}/bin/ngscopeclient")
253+
set(DIRS "\${CMAKE_INSTALL_PREFIX}/lib")
254+
install(CODE "include(BundleUtilities)
255+
fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\")")
257256
endif()
258257

259258
# ngscopeclient Windows portable zip/MSI installer build

0 commit comments

Comments
 (0)