mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Hide optional SuiteSparse vars in CMake GUI by default.
Change-Id: I7d7a82d1cbb8a6689bb383e4de2b9415ab7a3a81
This commit is contained in:
@@ -227,6 +227,8 @@ macro(suitesparse_find_component COMPONENT)
|
||||
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 @@ macro(suitesparse_find_component COMPONENT)
|
||||
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 @@ if (SUITESPARSEQR_FOUND)
|
||||
"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()
|
||||
|
||||
Reference in New Issue
Block a user