diff options
Diffstat (limited to 'cmake/Modules/FindLIBIDN.cmake')
-rw-r--r-- | cmake/Modules/FindLIBIDN.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/Modules/FindLIBIDN.cmake b/cmake/Modules/FindLIBIDN.cmake index d42257f..c769d06 100644 --- a/cmake/Modules/FindLIBIDN.cmake +++ b/cmake/Modules/FindLIBIDN.cmake @@ -16,7 +16,9 @@ # This file is in the public domain include(FindPkgConfig) -pkg_check_modules(LIBIDN libidn) +if(NOT LIBIDN_FOUND) + pkg_check_modules(LIBIDN libidn) +endif() if(NOT LIBIDN_FOUND) find_path(LIBIDN_INCLUDE_DIRS NAMES stringprep.h |