package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
837 B
23 lines
837 B
2 years ago
|
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
|
||
|
index f58d48253..10733561e 100644
|
||
|
--- a/cmake/config-ix.cmake
|
||
|
+++ b/cmake/config-ix.cmake
|
||
|
@@ -519,7 +519,7 @@ else()
|
||
|
find_program(GO_EXECUTABLE NAMES go DOC "go executable")
|
||
|
if(GO_EXECUTABLE STREQUAL "GO_EXECUTABLE-NOTFOUND")
|
||
|
message(STATUS "Go bindings disabled.")
|
||
|
- else()
|
||
|
+ elseif(EXISTS ${CMAKE_SOURCE_DIR}/bindings/go/conftest.go)
|
||
|
execute_process(COMMAND ${GO_EXECUTABLE} run ${CMAKE_SOURCE_DIR}/bindings/go/conftest.go
|
||
|
RESULT_VARIABLE GO_CONFTEST)
|
||
|
if(GO_CONFTEST STREQUAL "0")
|
||
|
@@ -528,6 +528,8 @@ else()
|
||
|
else()
|
||
|
message(STATUS "Go bindings disabled, need at least Go 1.2.")
|
||
|
endif()
|
||
|
+ else()
|
||
|
+ message(STATUS "Missing ${CMAKE_SOURCE_DIR}/bindings/go/conftest.go, Go bindings disabled.")
|
||
|
endif()
|
||
|
endif()
|
||
|
|