Workaround a CMake/pkg-config regression

This commit is contained in:
Přemysl Eric Janouch 2018-06-25 02:02:26 +02:00
parent b5af31b048
commit 193b724709
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,10 @@ if (WIN32)
list (APPEND CMAKE_FIND_ROOT_PATH ${WIN32_DEPENDS_PATH}) list (APPEND CMAKE_FIND_ROOT_PATH ${WIN32_DEPENDS_PATH})
endif (CMAKE_CROSSCOMPILING) 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 add_custom_target (win32-depends COMMAND ${CMAKE_COMMAND} -P
${PROJECT_SOURCE_DIR}/Win32Depends.cmake ${PROJECT_SOURCE_DIR}/Win32Depends.cmake