Author: gsim
Date: Fri Oct 10 12:59:25 2014
New Revision: 1630878

URL: http://svn.apache.org/r1630878
Log:
PROTON-705: Work with older versions of CMake too

Modified:
    qpid/proton/branches/examples/proton-c/src/tests/CMakeLists.txt

Modified: qpid/proton/branches/examples/proton-c/src/tests/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/src/tests/CMakeLists.txt?rev=1630878&r1=1630877&r2=1630878&view=diff
==============================================================================
--- qpid/proton/branches/examples/proton-c/src/tests/CMakeLists.txt (original)
+++ qpid/proton/branches/examples/proton-c/src/tests/CMakeLists.txt Fri Oct 10 
12:59:25 2014
@@ -31,7 +31,7 @@ macro (pn_add_c_test test file)
   if (CMAKE_SYSTEM_NAME STREQUAL Windows)
     get_target_property(QPID_PROTON_TARGET qpid-proton LOCATION_${bld_suffix})
     get_target_property(${test}_LOCATION ${test} LOCATION_${bld_suffix})
-    get_filename_component(QPID_PROTON_TARGET_DIR ${QPID_PROTON_TARGET} 
DIRECTORY)
+    get_filename_component(QPID_PROTON_TARGET_DIR ${QPID_PROTON_TARGET} PATH)
     add_test (${test} ${PYTHON_EXECUTABLE} ${env_py}
                  "PATH=${QPID_PROTON_TARGET_DIR}"
                  ${${test}_LOCATION})



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to