1 2if (GOTO_LIBRARIES) 3 set(GOTO_FIND_QUIETLY TRUE) 4endif (GOTO_LIBRARIES) 5 6find_library(GOTO_LIBRARIES goto PATHS $ENV{GOTODIR} ${LIB_INSTALL_DIR}) 7 8if(GOTO_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX) 9 set(GOTO_LIBRARIES ${GOTO_LIBRARIES} "-lpthread -lgfortran") 10endif() 11 12include(FindPackageHandleStandardArgs) 13find_package_handle_standard_args(GOTO DEFAULT_MSG GOTO_LIBRARIES) 14 15mark_as_advanced(GOTO_LIBRARIES) 16