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")