Removing duplicate SuiteSparse found message.

- Also flipping ordering of variables in
  find_package_handle_standard_args() so that the automatically
  generated message prints the include directories, not TRUE.

Change-Id: I2bf62eacd5c96f27152e9542b9a74651243a584e
This commit is contained in:
Alex Stewart
2013-11-04 20:32:40 +00:00
parent 6fed9fe0de
commit b0a8731fcd
+4 -2
View File
@@ -520,6 +520,9 @@ IF (AMD_FOUND AND
LIST(APPEND SUITESPARSE_INCLUDE_DIRS
${UFCONFIG_INCLUDE_DIR})
ENDIF (UFCONFIG_FOUND)
# As SuiteSparse includes are often all in the same directory, remove any
# repetitions.
LIST(REMOVE_DUPLICATES SUITESPARSE_INCLUDE_DIRS)
# Important: The ordering of these libraries is *NOT* arbitrary, as these
# could potentially be static libraries their link ordering is important.
@@ -538,7 +541,6 @@ IF (AMD_FOUND AND
LIST(APPEND SUITESPARSE_LIBRARIES
${METIS_LIBRARY})
ENDIF (METIS_FOUND)
MESSAGE(STATUS "Found SuiteSparse version: ${SUITESPARSE_VERSION}")
ELSE()
SUITESPARSE_REPORT_NOT_FOUND(
"Failed to find some/all required components of SuiteSparse.")
@@ -582,5 +584,5 @@ INCLUDE(FindPackageHandleStandardArgs)
# and QUIET optional arguments, as such we use an intermediary variable.
SET(SUITESPARSE_FOUND_COPY ${SUITESPARSE_FOUND})
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SuiteSparse
REQUIRED_VARS SUITESPARSE_FOUND_COPY SUITESPARSE_INCLUDE_DIRS SUITESPARSE_LIBRARIES
REQUIRED_VARS SUITESPARSE_INCLUDE_DIRS SUITESPARSE_LIBRARIES SUITESPARSE_FOUND_COPY
VERSION_VAR SUITESPARSE_VERSION)