From 7bb4f6ae2f90d9b1563ba14cb3cec21771ed57a4 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 23 Mar 2011 16:28:43 +0100 Subject: BTL: do not enable GOTO1 if GOTO2 was found --- bench/btl/libs/BLAS/CMakeLists.txt | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'bench/btl') diff --git a/bench/btl/libs/BLAS/CMakeLists.txt b/bench/btl/libs/BLAS/CMakeLists.txt index ad3858ee0..de42fe047 100644 --- a/bench/btl/libs/BLAS/CMakeLists.txt +++ b/bench/btl/libs/BLAS/CMakeLists.txt @@ -17,15 +17,6 @@ if (MKL_FOUND) endif(BUILD_btl_mkl) 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) if (GOTO2_FOUND) @@ -36,6 +27,19 @@ if (GOTO2_FOUND) endif(BUILD_btl_goto2) 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) if (ACML_FOUND) btl_add_bench(btl_acml main.cpp) -- cgit v1.2.3