Skip to content

Commit

Permalink
aja: Disable deprecated declarations warnings on macOS and Linux
Browse files Browse the repository at this point in the history
Deprecation warnings have been investigated and have been deemed
non-malicious for the time being.
  • Loading branch information
PatTheMav committed Dec 6, 2023
1 parent 4012489 commit e27b013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions UI/frontend-plugins/aja-output-ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ elseif(OS_MACOS)
"$<LINK_LIBRARY:FRAMEWORK,CoreFoundation.framework>"
"$<LINK_LIBRARY:FRAMEWORK,IOKit.framework>")
# cmake-format: on
target_compile_options(aja-output-ui PRIVATE -Wno-error=deprecated-declarations
-Wno-quoted-include-in-framework-header)
target_compile_options(aja-output-ui PRIVATE -Wno-deprecated-declarations -Wno-quoted-include-in-framework-header)
elseif(OS_LINUX OR OS_FREEBSD)
find_package(X11 REQUIRED)
target_link_libraries(aja-output-ui PRIVATE X11::X11 Qt::GuiPrivate)
Expand Down
4 changes: 2 additions & 2 deletions plugins/aja/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ elseif(OS_MACOS)
find_library(APPKIT AppKit)

target_link_libraries(aja PRIVATE ${IOKIT} ${COREFOUNDATION} ${APPKIT})
target_compile_options(aja PRIVATE -Wno-error=deprecated-declarations -Wno-shorten-64-to-32)
target_compile_options(aja PRIVATE -Wno-deprecated-declarations -Wno-shorten-64-to-32)
elseif(OS_LINUX OR OS_FREEBSD)
target_compile_options(aja PRIVATE -Wno-error=deprecated-declarations)
target_compile_options(aja PRIVATE -Wno-deprecated-declarations)
endif()

set_target_properties_obs(aja PROPERTIES FOLDER plugins PREFIX "")

0 comments on commit e27b013

Please sign in to comment.