Skip to content

Commit

Permalink
Fix build for Mac App Store.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 30, 2019
1 parent 60f9cc6 commit 382380d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 8 additions & 6 deletions external/crash_reports/breakpad/CMakeLists.txt
Expand Up @@ -14,9 +14,11 @@ INTERFACE

set(breakpad_lib_loc ${libs_loc}/breakpad/src/out/$<IF:$<CONFIG:Debug>,Debug,Release>/obj/client)

target_link_libraries(external_breakpad
INTERFACE
${breakpad_lib_loc}/windows/common.lib
${breakpad_lib_loc}/windows/handler/exception_handler.lib
${breakpad_lib_loc}/windows/crash_generation/crash_generation_client.lib
)
if (WIN32)
target_link_libraries(external_breakpad
INTERFACE
${breakpad_lib_loc}/windows/common.lib
${breakpad_lib_loc}/windows/handler/exception_handler.lib
${breakpad_lib_loc}/windows/crash_generation/crash_generation_client.lib
)
endif()
6 changes: 5 additions & 1 deletion options_mac.cmake
Expand Up @@ -8,7 +8,11 @@ if (build_osx)
target_compile_definitions(common_options INTERFACE OS_OSX)
else()
if (build_macstore)
target_compile_definitions(common_options INTERFACE OS_MAC_STORE)
target_compile_definitions(common_options
INTERFACE
OS_MAC_STORE
MAC_USE_BREAKPAD
)
endif()
target_include_directories(common_options
INTERFACE
Expand Down

0 comments on commit 382380d

Please sign in to comment.