aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/cmake/FindGOTO.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'bench/btl/cmake/FindGOTO.cmake')
-rw-r--r--bench/btl/cmake/FindGOTO.cmake4
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)