/home/ryan/src/mlpack.org/_src/mlpack-3.3.2/src/mlpack/bindings/go/CMakeLists.txt File Reference

Functions

 add_custom_command (TARGET go_copy PRE_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${test_file} ${CMAKE_BINARY_DIR}/src/mlpack/bindings/go/tests/) endforeach() endif() add_custom_command(TARGET go_copy PRE_BUILD COMMAND $
 
unable to build Go bindings endif () else() find_package(Go 1.11.0) find_package(Gonum) if(NOT GO_FOUND OR NOT GONUM_FOUND) unset(BUILD_GO_BINDINGS CACHE) endif() endif() if(NOT GO_FOUND) not_found_return("Go not found
 
 if (NOT BUILD_GO_SHLIB) macro(add_go_binding name) endmacro() return() endif() endmacro() if(NOT BUILD_GO_BINDINGS) not_found_return("Not building Go bindings.") endif() if(BUILD_GO_BINDINGS) if(FORCE_BUILD_GO_BINDINGS) find_package(Go 1.11.0) find_package(Gonum) if(NOT GO_FOUND OR NOT GONUM_FOUND) unset(BUILD_GO_BINDINGS CACHE) message(FATAL_ERROR "Go or Gonum not found
 
 macro (not_found_return message) message(STATUS "$
 

Function Documentation

◆ add_custom_command()

add_custom_command ( TARGET go_copy PRE_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${test_file} ${CMAKE_BINARY_DIR}/src/mlpack/bindings/go/tests/  )

◆ endif()

HAS_BFD_DL PARENT_SCOPE endif ( )

◆ if()

◆ macro()

macro ( not_found_return  message)

Definition at line 1 of file CMakeLists.txt.

Referenced by add_custom_command(), endif(), and set().