CMake: Remove workaround for removing png headers from cairo

CAIRO_INCLUDE_DIRS does not include them with the current FindCairo.cmake.
This commit is contained in:
Maarten Bent
2022-04-24 18:35:24 +02:00
parent b50633f440
commit deaa43e32d

View File

@@ -580,9 +580,6 @@ if(wxUSE_GUI)
if(NOT CAIRO_FOUND) if(NOT CAIRO_FOUND)
message(WARNING "Cairo not found, Cairo renderer won't be available") message(WARNING "Cairo not found, Cairo renderer won't be available")
wx_option_force_value(wxUSE_CAIRO OFF) wx_option_force_value(wxUSE_CAIRO OFF)
else()
#TODO only if build-in png?
list(FILTER CAIRO_INCLUDE_DIRS EXCLUDE REGEX ".*libpng.*")
endif() endif()
endif() endif()
endif() endif()