File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ function(add_macos_deploy_target)
103
103
104
104
add_custom_command (
105
105
OUTPUT ${PROJECT_BINARY_DIR} /${macos_app}/Contents/MacOS/Bitcoin-Qt
106
- COMMAND ${CMAKE_COMMAND} --install ${PROJECT_BINARY_DIR} --config $< CONFIG> --component GUI --prefix ${macos_app} /Contents/MacOS --strip
106
+ COMMAND ${CMAKE_COMMAND} --install ${PROJECT_BINARY_DIR} --config $< CONFIG> --component bitcoin-qt --prefix ${macos_app} /Contents/MacOS --strip
107
107
COMMAND ${CMAKE_COMMAND} -E rename ${macos_app} /Contents/MacOS/bin/$<TARGET_FILE_NAME:bitcoin-qt> ${macos_app} /Contents/MacOS/Bitcoin-Qt
108
108
COMMAND ${CMAKE_COMMAND} -E rm -rf ${macos_app} /Contents/MacOS/bin
109
109
VERBATIM
Original file line number Diff line number Diff line change @@ -236,7 +236,10 @@ target_link_libraries(bitcoin-qt
236
236
)
237
237
238
238
import_plugins (bitcoin-qt )
239
- set (installable_targets bitcoin-qt )
239
+ install (TARGETS bitcoin-qt
240
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
241
+ COMPONENT bitcoin-qt
242
+ )
240
243
if (WIN32 )
241
244
set_target_properties (bitcoin-qt PROPERTIES WIN32_EXECUTABLE TRUE )
242
245
endif ()
@@ -253,17 +256,15 @@ if(WITH_MULTIPROCESS)
253
256
bitcoin_ipc
254
257
)
255
258
import_plugins (bitcoin-gui )
256
- list (APPEND installable_targets bitcoin-gui )
259
+ install (TARGETS bitcoin-gui
260
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
261
+ COMPONENT bitcoin-gui
262
+ )
257
263
if (WIN32 )
258
264
set_target_properties (bitcoin-gui PROPERTIES WIN32_EXECUTABLE TRUE )
259
265
endif ()
260
266
endif ()
261
267
262
- install (TARGETS ${installable_targets}
263
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
264
- COMPONENT GUI
265
- )
266
-
267
268
if (BUILD_GUI_TESTS )
268
269
add_subdirectory (test )
269
270
endif ()
You can’t perform that action at this time.
0 commit comments