aboutsummaryrefslogtreecommitdiff
path: root/ports/libproxy/fix-dependency-libmodman.patch
blob: c84b86d01b4859733e9a6a114c39c541d3f73de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 451e7a6..b6782fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,13 +32,15 @@ option(WITH_WEBKIT3 "Build against gtk-3 version of webkitgtk" OFF)
 ### Subdirectories
 # Conditionally build bundled libmodman
 option(FORCE_SYSTEM_LIBMODMAN "Force using system libmodman" OFF)
-find_package(libmodman QUIET)
+find_package(libmodman REQUIRED)
 if(LIBMODMAN_FOUND)
     if("${LIBMODMAN_VERSION_MAJOR}" STREQUAL "2")
       message(STATUS "Building with system libmodman")    
     else()
       message(FATAL_ERROR "Found incompatible libmodman on your system (libmodman 2.X is needed)")
     endif()
+    include_directories(${LIBMODMAN_INCLUDE_DIR})
+    link_libraries(${LIBMODMAN_LIBRARIES})
 else()
     if(FORCE_SYSTEM_LIBMODMAN)
       message(FATAL_ERROR "Libmodman could not be found on your system")