CMake: Mark all system macOS frameworks as advanced variables

It should be extremely unusual to want to change these, and they are just cluttering up the CMake GUI.
This commit is contained in:
rdb 2020-12-19 00:33:22 +01:00
parent 113dd6a357
commit abe3c2bf0b
3 changed files with 9 additions and 0 deletions

View File

@ -128,6 +128,10 @@ if(APPLE)
if(APPLE_BZ2_LIBRARY) if(APPLE_BZ2_LIBRARY)
list(APPEND FFMPEG_LIBRARIES "${APPLE_BZ2_LIBRARY}") list(APPEND FFMPEG_LIBRARIES "${APPLE_BZ2_LIBRARY}")
endif() endif()
mark_as_advanced(APPLE_AUDIOTOOLBOX_LIBRARY APPLE_COREMEDIA_LIBRARY
APPLE_COREVIDEO_LIBRARY APPLE_SECURITY_LIBRARY APPLE_VDA_LIBRARY
APPLE_VIDEOTOOLBOX_LIBRARY APPLE_ICONV_LIBRARY APPLE_BZ2_LIBRARY)
endif() endif()
mark_as_advanced(FFMPEG_LIBRARY_DIR) mark_as_advanced(FFMPEG_LIBRARY_DIR)

View File

@ -82,6 +82,8 @@ if(APPLE)
find_library(FOUNDATION_LIBRARY Foundation) find_library(FOUNDATION_LIBRARY Foundation)
find_library(APPKIT_LIBRARY AppKit) find_library(APPKIT_LIBRARY AppKit)
target_link_libraries(p3dtoolutil ${FOUNDATION_LIBRARY} ${APPKIT_LIBRARY}) target_link_libraries(p3dtoolutil ${FOUNDATION_LIBRARY} ${APPKIT_LIBRARY})
mark_as_advanced(FOUNDATION_LIBRARY APPKIT_LIBRARY)
endif() endif()
# These are all used by executionEnvironment.cxx/filename.cxx # These are all used by executionEnvironment.cxx/filename.cxx

View File

@ -42,6 +42,9 @@ target_link_libraries(p3cocoadisplay
${APPLICATIONSERVICES_LIBRARY} ${APPKIT_LIBRARY} ${CARBON_LIBRARY} ${APPLICATIONSERVICES_LIBRARY} ${APPKIT_LIBRARY} ${CARBON_LIBRARY}
${CORE_VIDEO_LIBRARY}) ${CORE_VIDEO_LIBRARY})
mark_as_advanced(
APPLICATIONSERVICES_LIBRARY APPKIT_LIBRARY CARBON_LIBRARY CORE_VIDEO_LIBRARY)
if(NOT BUILD_METALIBS) if(NOT BUILD_METALIBS)
install(TARGETS p3cocoadisplay EXPORT OpenGL COMPONENT OpenGL DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(TARGETS p3cocoadisplay EXPORT OpenGL COMPONENT OpenGL DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif() endif()