Hide optional SuiteSparse vars in CMake GUI by default.
Change-Id: I7d7a82d1cbb8a6689bb383e4de2b9415ab7a3a81
diff --git a/cmake/FindSuiteSparse.cmake b/cmake/FindSuiteSparse.cmake
index 94f2e10..50d4ae1 100644
--- a/cmake/FindSuiteSparse.cmake
+++ b/cmake/FindSuiteSparse.cmake
@@ -227,6 +227,8 @@
else()
message(STATUS "Did not find ${COMPONENT} header (optional "
"SuiteSparse component).")
+ # Hide optional vars from CMake GUI even if not found.
+ mark_as_advanced(${COMPONENT}_INCLUDE_DIR)
endif()
endif()
endif()
@@ -249,6 +251,8 @@
else()
message(STATUS "Did not find ${COMPONENT} library (optional SuiteSparse "
"dependency)")
+ # Hide optional vars from CMake GUI even if not found.
+ mark_as_advanced(${COMPONENT}_LIBRARY)
endif()
endif()
endif()
@@ -303,8 +307,6 @@
"Library, discarding TBB as a dependency.")
endif()
else()
- # As TBB is optional, hide it from the CMake GUI even if it is not found.
- mark_as_advanced(TBB_LIBRARY)
message(STATUS "Did not find Intel TBB library, assuming SuiteSparseQR was "
"not compiled with TBB.")
endif()