Skip to content
Permalink
Browse files

FindLibint2.cmake automatically finds the correct libint2.pc without …

…the need to mess with PKG_CONFIG_PATH
  • Loading branch information...
evaleev committed May 8, 2019
1 parent e713569 commit 3c2377dac397bf0dc5227e3c35f54d025943152c
Showing with 7 additions and 1 deletion.
  1. +7 −1 FindLibint2.cmake
@@ -40,7 +40,13 @@ endif()

find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
pkg_check_modules(PC_LIBINT2 QUIET libint2)
# point pkg-config to the location of this tree's libint2.pc
set(ENV{PKG_CONFIG_PATH} "${CMAKE_CURRENT_LIST_DIR}/../../pkgconfig:$ENV{PKG_CONFIG_PATH}")
if(LIBINT2_FIND_QUIETLY)
pkg_check_modules(PC_LIBINT2 QUIET libint2)
else()
pkg_check_modules(PC_LIBINT2 libint2)
endif()
set(LIBINT2_VERSION ${PC_LIBINT2_VERSION})

find_path(LIBINT2_INCLUDE_DIR

0 comments on commit 3c2377d

Please sign in to comment.
You can’t perform that action at this time.