summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2021-11-16 13:35:10 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2021-11-16 13:35:10 (GMT)
commitd0cc2383dd0da65ff0b0855bc6f2f53251f8cccf (patch)
tree559f79858890aeddadea5b0dfb6c965fcc8b44eb
parent836abffe5eb34485e755a6976815656d28984e92 (diff)
downloadNinja-d0cc2383dd0da65ff0b0855bc6f2f53251f8cccf.zip
Ninja-d0cc2383dd0da65ff0b0855bc6f2f53251f8cccf.tar.gz
Ninja-d0cc2383dd0da65ff0b0855bc6f2f53251f8cccf.tar.bz2
GoogleTest 1.11.0 now requires linking pthread on Linux
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 341eb1c..f714e9e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -198,7 +198,8 @@ if(BUILD_TESTING)
if(WIN32)
target_sources(ninja_test PRIVATE src/includes_normalize_test.cc src/msvc_helper_test.cc)
endif()
- target_link_libraries(ninja_test PRIVATE libninja libninja-re2c gtest)
+ find_package(Threads REQUIRED)
+ target_link_libraries(ninja_test PRIVATE libninja libninja-re2c gtest Threads::Threads)
foreach(perftest
build_log_perftest