From 3583bc20741215652e2aaa02b1b0eb8bf363ca7d Mon Sep 17 00:00:00 2001 From: Simon Wells Date: Sun, 5 Nov 2017 12:01:18 +1300 Subject: Added setting to make pkg_config cmake_prefix_path variables --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a1a68d4e6..35d443ef4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,9 @@ cmake_policy(SET CMP0003 NEW) # don't be prolific with library paths cmake_policy(SET CMP0005 NEW) # proper define quoting cmake_policy(SET CMP0009 NEW) # don't follow symbolic links when using GLOB +# this can be removed if/when cmake 3.1 is made the minimum required version +set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON) + # workaround for omission in cmake 2.8.4's GNU.cmake, fixed in 2.8.5 if(CMAKE_COMPILER_IS_GNUCC) if(NOT DARWIN) -- cgit v1.2.3