summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/pkgconfig_helper.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/pkgconfig_helper.cmake b/cmake/Modules/pkgconfig_helper.cmake
index afb523855..f53a1064d 100644
--- a/cmake/Modules/pkgconfig_helper.cmake
+++ b/cmake/Modules/pkgconfig_helper.cmake
@@ -1,5 +1,5 @@
-MACRO(pkg_config_library LIBNAME pcfile)
- pkg_check_modules(${LIBNAME} REQUIRED ${pcfile})
+MACRO(pkg_config_library LIBNAME pcfile option)
+ pkg_check_modules(${LIBNAME} ${option} ${pcfile})
include_directories(${${LIBNAME}_INCLUDE_DIRS})
link_directories(${${LIBNAME}_LIBRARY_DIRS})
add_definitions(${${LIBNAME}_CFLAGS_OTHER})