From ffc4e6a886d683fff7aa8e7e92917e6158930389 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 24 Oct 2024 22:44:06 +0200 Subject: [PATCH] cmake: mark as advanced some internal Find* variables To sync with other similar variables and hide them from cmake UIs. Follow-up to 7bab201abe3915a0167c002f9308950cb8a06e4b #15193 Closes #15407 --- CMake/FindRustls.cmake | 5 +++++ CMake/FindWolfSSL.cmake | 1 + 2 files changed, 6 insertions(+) diff --git a/CMake/FindRustls.cmake b/CMake/FindRustls.cmake index 2e9caf18ba..282ccdaa32 100644 --- a/CMake/FindRustls.cmake +++ b/CMake/FindRustls.cmake @@ -85,12 +85,17 @@ elseif(NOT WIN32) if(_pthread_library) list(APPEND RUSTLS_LIBRARIES "pthread") endif() + mark_as_advanced(_pthread_library) + find_library(_dl_library "dl") if(_dl_library) list(APPEND RUSTLS_LIBRARIES "dl") endif() + mark_as_advanced(_dl_library) + find_library(_math_library "m") if(_math_library) list(APPEND RUSTLS_LIBRARIES "m") endif() + mark_as_advanced(_math_library) endif() diff --git a/CMake/FindWolfSSL.cmake b/CMake/FindWolfSSL.cmake index 35c24dcc70..b1c11e9e50 100644 --- a/CMake/FindWolfSSL.cmake +++ b/CMake/FindWolfSSL.cmake @@ -93,4 +93,5 @@ if(NOT WIN32) if(_math_library) list(APPEND WOLFSSL_LIBRARIES "m") # for log and pow endif() + mark_as_advanced(_math_library) endif()