From afa627bfd79ada26b539de05f5bf2d071824c6f5 Mon Sep 17 00:00:00 2001 From: Windel Bouwman Date: Tue, 11 May 2021 08:31:41 +0200 Subject: [PATCH] Remove usage of NO_CMAKE_FIND_ROOT_PATH to enable cross compilation. --- cmake/templates/pkgConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/templates/pkgConfig.cmake.in b/cmake/templates/pkgConfig.cmake.in index 8740d9944..bb62c0fff 100644 --- a/cmake/templates/pkgConfig.cmake.in +++ b/cmake/templates/pkgConfig.cmake.in @@ -157,7 +157,7 @@ foreach(library ${libraries}) foreach(path @PKG_CONFIG_LIB_PATHS@) find_library(lib ${library} PATHS ${path} - NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) + NO_DEFAULT_PATH) if(lib) set(lib_path ${path}) break()