From d60b49e5c564ec7e9d1a159af86833730a27c9c7 Mon Sep 17 00:00:00 2001 From: Hank Anderson Date: Tue, 10 Feb 2015 14:36:43 -0600 Subject: [PATCH] Turned off uninizialized variable warning when compiling lapack-netlib. --- cmake/system.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/system.cmake b/cmake/system.cmake index 2a0678f83..3d58fa2e3 100644 --- a/cmake/system.cmake +++ b/cmake/system.cmake @@ -342,6 +342,11 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") endforeach () endif () +if (${F_COMPILER} STREQUAL "GFORTRAN") + # lapack-netlib is rife with uninitialized warnings -hpa + set(LAPACK_FFLAGS "${LAPACK_FFLAGS} -Wno-maybe-uninitialized") +endif () + set(LAPACK_CFLAGS "${CMAKE_C_CFLAGS} -DHAVE_LAPACK_CONFIG_H") if (INTERFACE64) set(LAPACK_CFLAGS "${LAPACK_CFLAGS} -DLAPACK_ILP64")