diff --git a/MathLib/CMakeLists.txt b/MathLib/CMakeLists.txt
index 1e42e687a7934791f5246e507954ae6cf83539a2..4a9ec342a578d93236b0a9b0322d92b49904a517 100644
--- a/MathLib/CMakeLists.txt
+++ b/MathLib/CMakeLists.txt
@@ -58,6 +58,10 @@ ADD_LIBRARY( MathLib STATIC ${SOURCES} )
 
 SET_TARGET_PROPERTIES(MathLib PROPERTIES LINKER_LANGUAGE CXX)
 
+IF (LAPACK_FOUND)
+    TARGET_LINK_LIBRARIES ( MathLib ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES})
+ENDIF()
+
 IF (LIS_FOUND)
     TARGET_LINK_LIBRARIES( MathLib ${LIS_LIBRARIES} )
 ENDIF()