NO-JIRA: [cmake] Remove C++ flags before running C compile tests
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/e238bb6c Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/e238bb6c Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/e238bb6c Branch: refs/heads/go1 Commit: e238bb6c63b75ddef6ff581317536b0506c0f2ac Parents: 1ad1e65 Author: Alan Conway <acon...@redhat.com> Authored: Mon Oct 16 13:22:47 2017 +0100 Committer: Alan Conway <acon...@redhat.com> Committed: Mon Oct 16 13:22:47 2017 +0100 ---------------------------------------------------------------------- proton-c/bindings/cpp/cpp.cmake | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/e238bb6c/proton-c/bindings/cpp/cpp.cmake ---------------------------------------------------------------------- diff --git a/proton-c/bindings/cpp/cpp.cmake b/proton-c/bindings/cpp/cpp.cmake index 2c8f296..447dbad 100644 --- a/proton-c/bindings/cpp/cpp.cmake +++ b/proton-c/bindings/cpp/cpp.cmake @@ -63,6 +63,7 @@ macro(cxx_compile_checks) cxx_test("#include <thread>\nstd::thread t; int main(int, char**) { return 0; }" STD_THREAD) cxx_test("#include <mutex>\nstd::mutex m; int main(int, char**) { return 0; }" STD_MUTEX) cxx_test("#include <atomic>\nstd::atomic<int> a; int main(int, char**) { return 0; }" STD_ATOMIC) + unset(CMAKE_REQUIRED_FLAGS) # Don't contaminate later C tests with C++ flags endif() endmacro() --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org