diff --git a/handler/CMakeLists.txt b/handler/CMakeLists.txt index 55d2e4a97..6259a11fe 100644 --- a/handler/CMakeLists.txt +++ b/handler/CMakeLists.txt @@ -89,7 +89,7 @@ if(NOT IOS) main.cc ) - if(LINUX) + if(LINUX AND BUILD_SHARED_LIBS) target_sources(crashpad_handler PRIVATE ../client/pthread_create_linux.cc )