You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jr...@apache.org on 2018/04/20 20:32:39 UTC

qpid-cpp git commit: QPID-8169: Don't link to pthread on Windows

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 <jr...@apache.org>
Authored: Fri Apr 20 13:32:24 2018 -0700
Committer: Justin Ross <jr...@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