diff options
author | 2009-03-04 07:21:17 +0000 | |
---|---|---|
committer | 2009-03-04 07:21:17 +0000 | |
commit | 45136ac3b6ea63e9f8b093ab0e8dd0b9eac6452a (patch) | |
tree | 2ed6b7b6c76a8e8e2ef5466a72abc387554f135a /bench/btl/cmake/FindGOTO.cmake | |
parent | 3288e9e168bf89737aded54c4d98470a865d6fd3 (diff) |
various update of of BTL
Diffstat (limited to 'bench/btl/cmake/FindGOTO.cmake')
-rw-r--r-- | bench/btl/cmake/FindGOTO.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bench/btl/cmake/FindGOTO.cmake b/bench/btl/cmake/FindGOTO.cmake index b2b648b14..ad7eb3200 100644 --- a/bench/btl/cmake/FindGOTO.cmake +++ b/bench/btl/cmake/FindGOTO.cmake @@ -15,6 +15,10 @@ find_path(GOTO_INCLUDES find_file(GOTO_LIBRARIES libgotoblas.so PATHS /usr/lib $ENV{GOTODIR} ${LIB_INSTALL_DIR}) find_library(GOTO_LIBRARIES gotoblas PATHS $ENV{GOTODIR} ${LIB_INSTALL_DIR}) +if(GOTO_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX) + set(GOTO_LIBRARIES ${GOTO_LIBRARIES} "-lpthread") +endif(GOTO_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX) + include(FindPackageHandleStandardArgs) find_package_handle_standard_args(GOTO DEFAULT_MSG GOTO_INCLUDES GOTO_LIBRARIES) |