]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Clear CMAKE_REQUIRED_FLAGS before calling FindLAPACK 7938/head
authorIsuru Fernando <idf2@illinois.edu>
Fri, 19 Apr 2019 00:35:43 +0000 (19:35 -0500)
committerIsuru Fernando <idf2@illinois.edu>
Fri, 19 Apr 2019 00:35:43 +0000 (19:35 -0500)
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

index 2eb4519a15db4eb7af794ea904e578eeb407354b..b773ccbb8d1e41b2e5eafffac4d09e0818a626cd 100644 (file)
@@ -18,6 +18,7 @@
 #
 
 MACRO(FEATURE_LAPACK_FIND_EXTERNAL var)
+  CLEAR_CMAKE_REQUIRED()
   FIND_PACKAGE(LAPACK)
 
   #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.