PROTON-1654: [C++ binding] Fix testing examples on VS 2010
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/1c1bfadb Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/1c1bfadb Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/1c1bfadb Branch: refs/heads/go1 Commit: 1c1bfadb4eadcc0f17ca1ad650f4d85d349ccc8c Parents: 413e093 Author: Andrew Stitcher <[email protected]> Authored: Wed Dec 13 16:22:32 2017 +0000 Committer: Andrew Stitcher <[email protected]> Committed: Wed Dec 13 16:48:53 2017 +0000 ---------------------------------------------------------------------- examples/cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1c1bfadb/examples/cpp/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index 0019355..662bc72 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -109,7 +109,7 @@ macro(add_cpp_test name) set(test_path "$<TARGET_FILE_DIR:broker>:$ENV{PATH}") endif(WIN32) set(run_env ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/proton-c/env.py ${EXAMPLE_ENV}) - add_test(NAME ${name} COMMAND ${run_env} "PATH=${test_path}" ${VALGRIND_ENV} "HAS_CPP11=${HAS_ENOUGH_CPP11}" -- ${ARGN}) + add_test(NAME ${name} COMMAND ${run_env} "PATH=${test_path}" ${VALGRIND_ENV} "HAS_CPP11=$<$<BOOL:${HAS_ENOUGH_CPP11}>:1>" -- ${ARGN}) endmacro() add_cpp_test(cpp-example-container ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/example_test.py -v ContainerExampleTest) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
