BTL: do not enable GOTO1 if GOTO2 was found

This commit is contained in:
Gael Guennebaud 2011-03-23 16:28:43 +01:00
parent 3ef0da6efb
commit 7bb4f6ae2f

View File

@ -17,15 +17,6 @@ if (MKL_FOUND)
endif(BUILD_btl_mkl) endif(BUILD_btl_mkl)
endif (MKL_FOUND) endif (MKL_FOUND)
find_package(GOTO)
if (GOTO_FOUND)
btl_add_bench(btl_goto main.cpp)
if(BUILD_btl_goto)
target_link_libraries(btl_goto ${GOTO_LIBRARIES} )
set_target_properties(btl_goto PROPERTIES COMPILE_FLAGS "-DCBLASNAME=GOTO")
endif(BUILD_btl_goto)
endif (GOTO_FOUND)
find_package(GOTO2) find_package(GOTO2)
if (GOTO2_FOUND) if (GOTO2_FOUND)
@ -36,6 +27,19 @@ if (GOTO2_FOUND)
endif(BUILD_btl_goto2) endif(BUILD_btl_goto2)
endif (GOTO2_FOUND) endif (GOTO2_FOUND)
find_package(GOTO)
if (GOTO_FOUND)
if(GOTO2_FOUND)
btl_add_bench(btl_goto main.cpp OFF)
else()
btl_add_bench(btl_goto main.cpp)
endif()
if(BUILD_btl_goto)
target_link_libraries(btl_goto ${GOTO_LIBRARIES} )
set_target_properties(btl_goto PROPERTIES COMPILE_FLAGS "-DCBLASNAME=GOTO")
endif(BUILD_btl_goto)
endif (GOTO_FOUND)
find_package(ACML) find_package(ACML)
if (ACML_FOUND) if (ACML_FOUND)
btl_add_bench(btl_acml main.cpp) btl_add_bench(btl_acml main.cpp)