mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add GOTO2 and clean a bit the cmake macros
This commit is contained in:
@@ -1,18 +1,8 @@
|
||||
# include(FindLibraryWithDebug)
|
||||
|
||||
if (GOTO_INCLUDES AND GOTO_LIBRARIES)
|
||||
if (GOTO_LIBRARIES)
|
||||
set(GOTO_FIND_QUIETLY TRUE)
|
||||
endif (GOTO_INCLUDES AND GOTO_LIBRARIES)
|
||||
endif (GOTO_LIBRARIES)
|
||||
|
||||
find_path(GOTO_INCLUDES
|
||||
NAMES
|
||||
cblas.h
|
||||
PATHS
|
||||
$ENV{GOTODIR}/include
|
||||
${INCLUDE_INSTALL_DIR}
|
||||
)
|
||||
|
||||
find_file(GOTO_LIBRARIES libgoto.so PATHS /usr/lib $ENV{GOTODIR} ${LIB_INSTALL_DIR})
|
||||
find_library(GOTO_LIBRARIES goto PATHS $ENV{GOTODIR} ${LIB_INSTALL_DIR})
|
||||
|
||||
if(GOTO_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
|
||||
@@ -20,7 +10,6 @@ if(GOTO_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(GOTO DEFAULT_MSG
|
||||
GOTO_INCLUDES GOTO_LIBRARIES)
|
||||
find_package_handle_standard_args(GOTO DEFAULT_MSG GOTO_LIBRARIES)
|
||||
|
||||
mark_as_advanced(GOTO_INCLUDES GOTO_LIBRARIES)
|
||||
mark_as_advanced(GOTO_LIBRARIES)
|
||||
|
||||
Reference in New Issue
Block a user