20 lines
666 B
Diff
20 lines
666 B
Diff
diff -Naur benchmark-1.4.1.orig/src/CMakeLists.txt benchmark-1.4.1/src/CMakeLists.txt
|
|
--- benchmark-1.4.1.orig/src/CMakeLists.txt 2018-06-13 12:52:24.097485700 -0400
|
|
+++ benchmark-1.4.1/src/CMakeLists.txt 2018-06-13 13:10:07.526085800 -0400
|
|
@@ -23,12 +23,14 @@
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
|
|
)
|
|
|
|
-# Link threads.
|
|
+# Link threads. Non-Windows only
|
|
+if(!WIN32)
|
|
target_link_libraries(benchmark ${BENCHMARK_CXX_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
|
find_library(LIBRT rt)
|
|
if(LIBRT)
|
|
target_link_libraries(benchmark ${LIBRT})
|
|
endif()
|
|
+endif()
|
|
|
|
# We need extra libraries on Windows
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|