MACRO(FEATURE_LAPACK_CONFIGURE_EXTERNAL)
-
ADD_FLAGS(DEAL_II_LINKER_FLAGS "${LAPACK_LINKER_FLAGS}")
DEAL_II_APPEND_LIBRARIES(${LAPACK_LIBRARIES})
ENDFOREACH()
SWITCH_LIBRARY_PREFERENCE()
+ #
+ # Filter out spurious "FALSE" in the library lists:
+ #
+ IF(DEFINED BLAS_LIBRARIES)
+ LIST(REMOVE_ITEM BLAS_LIBRARIES "FALSE")
+ ENDIF()
+ LIST(REMOVE_ITEM LAPACK_LIBRARIES "FALSE")
+
MARK_AS_ADVANCED(
BLAS_DIR
LAPACK_DIR
)
#
- # If we couldn't find LAPACK, clean up the library variables:
+ # Clean up the library variables in case we couldn't find the libraries
+ # to avoid spurious inclusions of "-NOTFOUND" or "FALSE":
#
-
- IF("${BLAS_LIBRARIES}" STREQUAL "FALSE")
- SET(BLAS_LIBRARIES "")
- ENDIF()
- IF("${LAPACK_LIBRARIES}" STREQUAL "FALSE")
- SET(LAPACK_LIBRARIES "")
- ENDIF()
+ SET(BLAS_LIBRARIES)
+ SET(LAPACK_LIBRARIES)
ENDIF()
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