PROTON-1034: Go binding on Windows defaults to Off

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

Branch: refs/heads/go1
Commit: 288070d8e4856bc7664270cb5ca51ebaa22b8efc
Parents: 75d03a8
Author: Chuck Rolke <[email protected]>
Authored: Mon Nov 2 11:57:16 2015 -0500
Committer: Chuck Rolke <[email protected]>
Committed: Mon Nov 2 11:57:16 2015 -0500

----------------------------------------------------------------------
 proton-c/bindings/CMakeLists.txt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/288070d8/proton-c/bindings/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/proton-c/bindings/CMakeLists.txt b/proton-c/bindings/CMakeLists.txt
index 4508adf..37943dc 100644
--- a/proton-c/bindings/CMakeLists.txt
+++ b/proton-c/bindings/CMakeLists.txt
@@ -40,7 +40,12 @@ endif (CMAKE_CXX_COMPILER)
 find_program(GO_EXE go)
 mark_as_advanced(GO_EXE)
 if (GO_EXE)
-  set (DEFAULT_GO ON)
+  if(WIN32)
+    # Go on windows requires gcc tool chain
+    set (DEFAULT_GO OFF)
+  else()
+    set (DEFAULT_GO ON)
+  endif()
 endif (GO_EXE)
 
 if(SWIG_FOUND)


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

Reply via email to