You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2019/10/17 13:51:48 UTC
[qpid-proton] branch master updated: PROTON-2120: Changed in
c/tests/CMakeLists.txt the way threaderciser test is added to resolve link
problem
This is an automated email from the ASF dual-hosted git repository.
kpvdr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push:
new f78aabc PROTON-2120: Changed in c/tests/CMakeLists.txt the way threaderciser test is added to resolve link problem
f78aabc is described below
commit f78aabcd500eb53c434defd3249a53a3b8229ae8
Author: Kim van der Riet <kv...@europa.lan>
AuthorDate: Thu Oct 17 09:51:20 2019 -0400
PROTON-2120: Changed in c/tests/CMakeLists.txt the way threaderciser test is added to resolve link problem
---
c/tests/CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/c/tests/CMakeLists.txt b/c/tests/CMakeLists.txt
index ae75d2e..25b4f5c 100644
--- a/c/tests/CMakeLists.txt
+++ b/c/tests/CMakeLists.txt
@@ -80,7 +80,10 @@ if (CMAKE_CXX_COMPILER)
# problems are cleared up
option(THREADERCISER "Run the threaderciser concurrency tests" OFF)
if (THREADERCISER)
- add_c_test(c-threaderciser threaderciser.c)
+ add_executable(c-threaderciser threaderciser.c)
+ set_target_properties(c-threaderciser PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_WARNING_FLAGS}")
+ add_test(NAME c-threaderciser COMMAND ${test_env} ${TEST_EXE_PREFIX_CMD} $<TARGET_FILE:c-threaderciser>)
+ set_tests_properties(c-threaderciser PROPERTIES WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries (c-threaderciser qpid-proton-proactor)
find_library(Pthread_LIBRARY pthread)
if (Pthread_LIBRARY)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org