Repository: qpid-proton Updated Branches: refs/heads/master 348f4d51f -> 3f0edd878
PROTON-1220: enable C++ build option for C examples Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/3f0edd87 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/3f0edd87 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/3f0edd87 Branch: refs/heads/master Commit: 3f0edd8780cb74e2adfa9a94b3772cffe6452e53 Parents: 348f4d5 Author: Ken Giusti <[email protected]> Authored: Fri Jun 3 10:39:36 2016 -0400 Committer: Ken Giusti <[email protected]> Committed: Fri Jun 3 10:39:36 2016 -0400 ---------------------------------------------------------------------- examples/c/messenger/CMakeLists.txt | 7 +++++++ examples/c/reactor/CMakeLists.txt | 7 +++++++ 2 files changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3f0edd87/examples/c/messenger/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/examples/c/messenger/CMakeLists.txt b/examples/c/messenger/CMakeLists.txt index f7c5f81..d4fec71 100644 --- a/examples/c/messenger/CMakeLists.txt +++ b/examples/c/messenger/CMakeLists.txt @@ -32,6 +32,13 @@ set_source_files_properties ( COMPILE_FLAGS "${COMPILE_WARNING_FLAGS} ${COMPILE_LANGUAGE_FLAGS} ${LINK_TIME_OPTIMIZATION}" ) +if (BUILD_WITH_CXX) + set_source_files_properties ( + ${messenger-examples} + PROPERTIES LANGUAGE CXX + ) +endif (BUILD_WITH_CXX) + add_executable(recv recv.c) add_executable(send send.c) add_executable(recv-async recv-async.c) http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3f0edd87/examples/c/reactor/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/examples/c/reactor/CMakeLists.txt b/examples/c/reactor/CMakeLists.txt index 9c96c0b..bd6163f 100644 --- a/examples/c/reactor/CMakeLists.txt +++ b/examples/c/reactor/CMakeLists.txt @@ -30,6 +30,13 @@ set_source_files_properties ( COMPILE_FLAGS "${COMPILE_WARNING_FLAGS} ${COMPILE_LANGUAGE_FLAGS} ${LINK_TIME_OPTIMIZATION}" ) +if (BUILD_WITH_CXX) + set_source_files_properties ( + ${reactor-examples} + PROPERTIES LANGUAGE CXX + ) +endif (BUILD_WITH_CXX) + include_directories(${Proton_INCLUDE_DIRS}) add_executable(sender sender.c) add_executable(receiver receiver.c) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
