diff --git a/external/crash_reports/breakpad/CMakeLists.txt b/external/crash_reports/breakpad/CMakeLists.txt index 6ad8fb9..bd1d56d 100644 --- a/external/crash_reports/breakpad/CMakeLists.txt +++ b/external/crash_reports/breakpad/CMakeLists.txt @@ -14,9 +14,11 @@ INTERFACE set(breakpad_lib_loc ${libs_loc}/breakpad/src/out/$,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() diff --git a/options_mac.cmake b/options_mac.cmake index 955bd16..6be7263 100644 --- a/options_mac.cmake +++ b/options_mac.cmake @@ -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