diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2018-05-23 15:27:28 +0300 |
---|---|---|
committer | Dominik Schmidt <dev@dominik-schmidt.de> | 2018-05-23 15:27:28 +0300 |
commit | 3f92d83acf3c1110105a18c8e254e37d3dce73cc (patch) | |
tree | 565914072271a247caf445a6895542f90b153c31 | |
parent | 0556aface79bbb6a17c1ed95d54287456d6ae2ba (diff) |
Fix msvc build
-rw-r--r-- | 3rdparty/breakpad/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/3rdparty/breakpad/CMakeLists.txt b/3rdparty/breakpad/CMakeLists.txt index c4f8537..f3c2bef 100644 --- a/3rdparty/breakpad/CMakeLists.txt +++ b/3rdparty/breakpad/CMakeLists.txt @@ -75,8 +75,11 @@ endif() include_directories(.) # ADD_DEFINITIONS( -fPIC ) add_library(crashreporter-breakpad STATIC ${breakpadSources} ) -target_link_libraries(crashreporter-breakpad pthread) -if(WIN32) +if(NOT MSVC) + target_link_libraries(crashreporter-breakpad pthread) +endif() + +if(WIN32 AND NOT MSVC) target_link_libraries(crashreporter-breakpad "mingwex") endif() |