diff options
Diffstat (limited to 'plugins/http-files/CMakeLists.txt')
-rw-r--r-- | plugins/http-files/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/http-files/CMakeLists.txt b/plugins/http-files/CMakeLists.txt index 77579fdb..2da46731 100644 --- a/plugins/http-files/CMakeLists.txt +++ b/plugins/http-files/CMakeLists.txt @@ -1,10 +1,18 @@ +set(HTTP_FILES_DEFINITIONS) +if(USE_SOUP3) + set(Soup Soup3) + set(HTTP_FILES_DEFINITIONS ${HTTP_FILES_DEFINITIONS} SOUP_3) +else() + set(Soup Soup2) +endif() + find_packages(HTTP_FILES_PACKAGES REQUIRED Gee GLib GModule GObject GTK3 - Soup + ${Soup} ) vala_precompile(HTTP_FILES_VALA_C @@ -19,6 +27,8 @@ CUSTOM_VAPIS ${CMAKE_BINARY_DIR}/exports/qlite.vapi PACKAGES ${HTTP_FILES_PACKAGES} +DEFINITIONS + ${HTTP_FILES_DEFINITIONS} ) add_definitions(${VALA_CFLAGS}) |