From 276bedc18a54743deff32b349b3763fdbe5ad83f Mon Sep 17 00:00:00 2001 From: Marco Clemencic <marco.clemencic@cern.ch> Date: Wed, 3 Feb 2021 12:47:14 +0100 Subject: [PATCH] make sure LCG pkg-conf looks for packages in CMAKE_PREFIX_PATH and system --- LbDevTools/data/toolchain.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LbDevTools/data/toolchain.cmake b/LbDevTools/data/toolchain.cmake index 16fce16..9b41742 100644 --- a/LbDevTools/data/toolchain.cmake +++ b/LbDevTools/data/toolchain.cmake @@ -98,6 +98,10 @@ if(NOT CMAKE_SOURCE_DIR MATCHES "CMakeTmp") endif() endif() + # make sure pkg-config looks for packages on CMAKE_PREFIX_PATH and system + set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON) + list(APPEND CMAKE_PREFIX_PATH /usr) + # Make sure that when the toolchain is invoked again it uses this branch set(ENV{GAUDI_OLD_STYLE_PROJECT} "${CMAKE_SOURCE_DIR}") endif() -- GitLab