--- cmake/modules/pkg-config.cmake.orig 2014-02-06 14:06:07.000000000 +0900
+++ cmake/modules/pkg-config.cmake 2015-03-01 22:14:10.000000000 +0900
endif(FORCE_EXTERNAL_STATIC)
- _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
+ if(CMAKE_VERSION VERSION_LESS "3.1")
+ _pkg_check_modules_internal(0 0 ${_prefix} "${_package}")
+ else(CMAKE_VERSION VERSION_LESS "3.1")
+ _pkg_check_modules_internal(0 0 0 0 ${_prefix} "${_package}")
+ endif(CMAKE_VERSION VERSION_LESS "3.1")
cmake_link_flags(${_link_FLAGS} "${${_xprefix}_LDFLAGS}")
# If libraries cannot be not found, then that is equivalent to whole