From 193b7247090a466d508135d911a4c61b5c429dfa Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Mon, 25 Jun 2018 02:02:26 +0200 Subject: Workaround a CMake/pkg-config regression --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 206c93c..58ddccb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,10 @@ if (WIN32) list (APPEND CMAKE_FIND_ROOT_PATH ${WIN32_DEPENDS_PATH}) endif (CMAKE_CROSSCOMPILING) - set (PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE) + set (PKG_CONFIG_USE_CMAKE_PREFIX_PATH FALSE) + # Seems like there is a regression setting this to two paths in one, + # setting the path manually + set (ENV{PKG_CONFIG_PATH} "${WIN32_DEPENDS_PATH}/lib/pkgconfig") add_custom_target (win32-depends COMMAND ${CMAKE_COMMAND} -P ${PROJECT_SOURCE_DIR}/Win32Depends.cmake -- cgit v1.2.3-70-g09d2