qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jr...@apache.org
Subject qpid-cpp git commit: QPID-8169: Don't link to pthread on Windows
Date Fri, 20 Apr 2018 20:32:39 GMT
Repository: qpid-cpp
Updated Branches:
  refs/heads/master 800028f4f -> 29d76b97f


QPID-8169: Don't link to pthread on Windows


Project: http://git-wip-us.apache.org/repos/asf/qpid-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-cpp/commit/29d76b97
Tree: http://git-wip-us.apache.org/repos/asf/qpid-cpp/tree/29d76b97
Diff: http://git-wip-us.apache.org/repos/asf/qpid-cpp/diff/29d76b97

Branch: refs/heads/master
Commit: 29d76b97f1dc8ebe0dbbe7c3264428d727ba3258
Parents: 800028f
Author: Justin Ross <jross@apache.org>
Authored: Fri Apr 20 13:32:24 2018 -0700
Committer: Justin Ross <jross@apache.org>
Committed: Fri Apr 20 13:32:24 2018 -0700

----------------------------------------------------------------------
 src/tests/CMakeLists.txt | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-cpp/blob/29d76b97/src/tests/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 9387f41..0c843b2 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -232,8 +232,11 @@ add_executable (unit_test unit_test
                 ${actual_unit_tests} ${platform_test_additions})
 target_link_libraries (unit_test
                        ${qpid_test_boost_libs}
-                       qpidmessaging qpidtypes qpidbroker qpidclient qpidcommon
-                       pthread)
+                       qpidmessaging qpidtypes qpidbroker qpidclient qpidcommon)
+
+if (NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
+    target_link_libraries (unit_test pthread)
+endif ()
 
 endif (BUILD_TESTING_UNITTESTS)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message