You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2018/07/11 21:19:51 UTC

qpid-proton git commit: NO-JIRA: [c, cpp] Remove dead code in examples/CMakeLists.txt

Repository: qpid-proton
Updated Branches:
  refs/heads/master adefd01f3 -> 1898c74e2


NO-JIRA: [c,cpp] Remove dead code in examples/CMakeLists.txt


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/1898c74e
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/1898c74e
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/1898c74e

Branch: refs/heads/master
Commit: 1898c74e286acd44dc09a6de892c7d7aae2ddff1
Parents: adefd01
Author: Alan Conway <ac...@redhat.com>
Authored: Fri Jul 6 15:06:34 2018 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Wed Jul 11 17:16:48 2018 -0400

----------------------------------------------------------------------
 c/examples/CMakeLists.txt   | 10 ----------
 cpp/examples/CMakeLists.txt | 10 ----------
 2 files changed, 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1898c74e/c/examples/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/c/examples/CMakeLists.txt b/c/examples/CMakeLists.txt
index 17438d0..6128f62 100644
--- a/c/examples/CMakeLists.txt
+++ b/c/examples/CMakeLists.txt
@@ -43,16 +43,6 @@ else()
   set(test_path "$<TARGET_FILE_DIR:c-broker>:$ENV{PATH}")
 endif()
 
-# Set result to a native search path - used by examples and binding tests.
-# args after result are directories or search paths.
-macro(set_search_path result)
-  set(${result} ${ARGN})
-  if (UNIX)
-    string(REPLACE ";" ":" ${result} "${${result}}") # native search path separators.
-  endif()
-  file(TO_NATIVE_PATH "${${result}}" ${result}) # native slash separators
-endmacro()
-
 add_test(
   NAME c-example-tests
   COMMAND ${PN_ENV_SCRIPT} "PATH=${test_path}" ${VALGRIND_ENV} --

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1898c74e/cpp/examples/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/cpp/examples/CMakeLists.txt b/cpp/examples/CMakeLists.txt
index 8487a6b..18d922e 100644
--- a/cpp/examples/CMakeLists.txt
+++ b/cpp/examples/CMakeLists.txt
@@ -103,16 +103,6 @@ if(HAS_ENOUGH_CPP11)
   endif()
 endif()
 
-# Set result to a native search path - used by examples and binding tests.
-# args after result are directories or search paths.
-macro(set_search_path result)
-  set(${result} ${ARGN})
-  if (UNIX)
-    string(REPLACE ";" ":" ${result} "${${result}}") # native search path separators.
-  endif()
-  file(TO_NATIVE_PATH "${${result}}" ${result}) # native slash separators
-endmacro()
-
 # Add a test with the correct environment to find test executables and valgrind.
 macro(add_cpp_test name)
   if(WIN32)


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