aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/cmake
diff options
context:
space:
mode:
authorMartin Erik Werner <martinerikwerner@gmail.com>2019-10-19 19:37:16 +0200
committerMartin Erik Werner <martinerikwerner@gmail.com>2019-11-05 22:40:49 +0100
commit6caa879a42d97f1b02ecc90c77fc486220251fa1 (patch)
tree5857f78c1c6d26e46d986dfb99a34cd1c4b491e3 /googletest/cmake
parent72adf7a4155b6642da1e6761678fe546590c0269 (diff)
downloadgoogletest-6caa879a42d97f1b02ecc90c77fc486220251fa1.tar.gz
googletest-6caa879a42d97f1b02ecc90c77fc486220251fa1.tar.bz2
googletest-6caa879a42d97f1b02ecc90c77fc486220251fa1.zip
pkg-config: Remove pthread link flag from Cflags
Remove the threads link library variable references from the pkg-config Cflags: field, removing -lpthread(s) from the compile flags. "-l*" linker flags should only be part of the Libs: section and should not be part of the Cflags: section in pkg-config files. This was first suggested in https://github.com/google/googletest/pull/2006 and further discussed in https://github.com/google/googletest/pull/2483 .
Diffstat (limited to 'googletest/cmake')
-rw-r--r--googletest/cmake/gtest.pc.in2
-rw-r--r--googletest/cmake/gtest_main.pc.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/googletest/cmake/gtest.pc.in b/googletest/cmake/gtest.pc.in
index 9aae29e2..49d70c9b 100644
--- a/googletest/cmake/gtest.pc.in
+++ b/googletest/cmake/gtest.pc.in
@@ -7,4 +7,4 @@ Description: GoogleTest (without main() function)
Version: @PROJECT_VERSION@
URL: https://github.com/google/googletest
Libs: -L${libdir} -lgtest @CMAKE_THREAD_LIBS_INIT@
-Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@ @CMAKE_THREAD_LIBS_INIT@
+Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@
diff --git a/googletest/cmake/gtest_main.pc.in b/googletest/cmake/gtest_main.pc.in
index 915f2973..e0d81a8d 100644
--- a/googletest/cmake/gtest_main.pc.in
+++ b/googletest/cmake/gtest_main.pc.in
@@ -8,4 +8,4 @@ Version: @PROJECT_VERSION@
URL: https://github.com/google/googletest
Requires: gtest
Libs: -L${libdir} -lgtest_main @CMAKE_THREAD_LIBS_INIT@
-Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@ @CMAKE_THREAD_LIBS_INIT@
+Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@