Skip to content

Commit

Permalink
Try to fix macos build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dchapyshev committed Oct 30, 2023
1 parent e9f7155 commit 14b251a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ endif()

set(CMAKE_SKIP_BUILD_RPATH ON)

message(STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR}")
message(STATUS "Host system processor: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
message(STATUS "CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
message(STATUS "CMAKE_HOST_SYSTEM_PROCESSOR: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
message(STATUS "CMAKE_RUNTIME_OUTPUT_DIRECTORY: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
message(STATUS "CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}")

find_package(Qt5 REQUIRED Core Gui Network PrintSupport Widgets Xml)
find_package(Qt5LinguistTools)
Expand Down
2 changes: 1 addition & 1 deletion source/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ if (APPLE)
set_target_properties(aspia_client PROPERTIES MACOSX_BUNDLE_ICONFILE ${aspia_client_ICON})

add_custom_command(TARGET aspia_client POST_BUILD
COMMAND ${CODESIGN_BIN} --force --sign "Developer ID Application" -v "Aspia Client.app"
COMMAND ${CODESIGN_BIN} --force --sign "Developer ID Application" -v "${CMAKE_BINARY_DIR}/Aspia Client.app"
WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
COMMENT "Signing..."
VERBATIM)
Expand Down
2 changes: 1 addition & 1 deletion source/console/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if (APPLE)
set_target_properties(aspia_console PROPERTIES MACOSX_BUNDLE_ICONFILE ${aspia_console_ICON})

add_custom_command(TARGET aspia_console POST_BUILD
COMMAND ${CODESIGN_BIN} --force --sign "Developer ID Application" -v "Aspia Console.app"
COMMAND ${CODESIGN_BIN} --force --sign "Developer ID Application" -v "${CMAKE_BINARY_DIR}/Aspia Console.app"
WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
COMMENT "Signing..."
VERBATIM)
Expand Down

0 comments on commit 14b251a

Please sign in to comment.