From 64c561f0bdddb179d6a47701a075f725d59a0e4e Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 15 Sep 2020 12:42:41 -0400 Subject: [PATCH] Linux: cmake: Disable GTK deprecated functions (fixes issue #2791) --- tests/cefclient/CMakeLists.txt.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/cefclient/CMakeLists.txt.in b/tests/cefclient/CMakeLists.txt.in index 2d6eb020d..51de5b671 100644 --- a/tests/cefclient/CMakeLists.txt.in +++ b/tests/cefclient/CMakeLists.txt.in @@ -135,6 +135,9 @@ if(OS_LINUX) set_target_properties(${CEF_TARGET} PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE) set_target_properties(${CEF_TARGET} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CEF_TARGET_OUT_DIR}) + # We don't call deprecated GTK functions, and they can cause build failures, so disable them. + add_definitions("-DGTK_DISABLE_DEPRECATED") + # Copy CEF binary and resource files to the target output directory. COPY_FILES("${CEF_TARGET}" "${CEF_BINARY_FILES}" "${CEF_BINARY_DIR}" "${CEF_TARGET_OUT_DIR}") COPY_FILES("${CEF_TARGET}" "${CEF_RESOURCE_FILES}" "${CEF_RESOURCE_DIR}" "${CEF_TARGET_OUT_DIR}")