Fixed mutially exclusive CAIRO and SWSCALE includes

When both are defined there was a build error due to missing
includes.
This commit is contained in:
Armin Novak 2022-10-19 17:01:35 +02:00 committed by akallabeth
parent 187b553b97
commit 6ab2cb6d99

View File

@ -93,10 +93,12 @@ endif(WITH_CAIRO)
if (WITH_SWSCALE)
include_directories(${SWScale_INCLUDE_DIR})
freerdp_library_add(${SWScale_LIBRARY})
elseif (WITH_CAIRO)
endif()
if (WITH_CAIRO)
include_directories(${CAIRO_INCLUDE_DIR})
freerdp_library_add(${CAIRO_LIBRARY})
else()
endif()
if (NOT WITH_SWSCALE AND NOT WITH_CAIRO)
message(WARNING "-DWITH_SWSCALE=OFF and -DWITH_CAIRO=OFF, compiling without image scaling support!")
endif()