Skip to content

Commit

Permalink
cmake: mark some library variables as adanced
Browse files Browse the repository at this point in the history
Marking some cmake variables as advanced prevents them from prominently
showing up in the build configuration

Pick-to: 6.5 6.6 6.7
Change-Id: I29af7f631b5ad9d4f435f8201ec31b187e8af6b0
Reviewed-by: Artem Dyomin <[email protected]>
Reviewed-by: Jøger Hansegård <[email protected]>
  • Loading branch information
timblechmann committed Feb 26, 2024
1 parent 887f1e7 commit 6f004bc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmake/FindFFmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ macro(find_component _component _pkgconfig _library _header)

set(${_component}_DEFINITIONS ${PC_${_component}_CFLAGS_OTHER})
set_component_found(${_component})

mark_as_advanced(${_component}_LIBRARY)
endmacro()

# Clear the previously cached variables, because they are recomputed every time
Expand Down Expand Up @@ -204,6 +206,9 @@ foreach (_component ${FFmpeg_FIND_COMPONENTS})
else()
list(APPEND FFMPEG_STATIC_COMPONENTS ${_component})
endif()

mark_as_advanced(${_component}_LIBRARY_NAME ${_component}_DEFINITIONS ${_component}_INCLUDE_DIR
${_component}_LIBRARY_DIR ${_component}_SHARED_LIBRARIES)
endif()
endforeach()

Expand Down
4 changes: 3 additions & 1 deletion cmake/FindWMF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ if(WMF_FOUND AND NOT TARGET WMF::WMF)
INTERFACE_LINK_LIBRARIES "${WMF_LIBRARIES}")
endif()

mark_as_advanced(WMF_LIBRARIES)
mark_as_advanced(WMF_LIBRARIES WMF_STRMIIDS_LIBRARY WMF_AMSTRMID_LIBRARY WMF_DMOGUIDS_LIBRARY WMF_UUID_LIBRARY
WMF_MSDMO_LIBRARY WMF_OLE32_LIBRARY WMF_OLEAUT32_LIBRARY WMF_MF_LIBRARY WMF_MFUUID_LIBRARY WMF_MFPLAT_LIBRARY
WMF_MFCORE_LIBRARY WMF_PROPSYS_LIBRARY)
2 changes: 2 additions & 0 deletions cmake/FindWrapPulseAudio.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WrapPulseAudio REQUIRED_VARS
PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR WrapPulseAudio_FOUND)

mark_as_advanced(PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR)

0 comments on commit 6f004bc

Please sign in to comment.