From 0bd307516917cd804b26a7302a4608cfee3ce524 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 18 Apr 2019 19:35:43 -0500 Subject: [PATCH] CMake: Clear CMAKE_REQUIRED_FLAGS before calling FindLAPACK CMAKE_REQUIRED_FLAGS is populated by dealii with CXXFLAGS and this should be cleared before calling any function that calls try_compile on a C file. FindLAPACK calls FindTHREADS.cmake which uses try_compile on a C file. --- cmake/configure/configure_1_lapack.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/configure/configure_1_lapack.cmake b/cmake/configure/configure_1_lapack.cmake index 2eb4519a15..b773ccbb8d 100644 --- a/cmake/configure/configure_1_lapack.cmake +++ b/cmake/configure/configure_1_lapack.cmake @@ -18,6 +18,7 @@ # MACRO(FEATURE_LAPACK_FIND_EXTERNAL var) + CLEAR_CMAKE_REQUIRED() FIND_PACKAGE(LAPACK) # -- 2.39.5