diff options
author | Alexandre Bouvier <contact@amb.tf> | 2022-12-06 04:17:44 +0100 |
---|---|---|
committer | Alexandre Bouvier <contact@amb.tf> | 2022-12-06 05:32:09 +0100 |
commit | bb3440f7c46a3a2478f63bf9609202e5996d100d (patch) | |
tree | 7848141f5798efac8d17f67c0b9987576ba07c39 /externals/find-modules/Findinih.cmake | |
parent | Merge pull request #9385 from Morph1984/dynarmic-ver (diff) | |
download | yuzu-bb3440f7c46a3a2478f63bf9609202e5996d100d.tar yuzu-bb3440f7c46a3a2478f63bf9609202e5996d100d.tar.gz yuzu-bb3440f7c46a3a2478f63bf9609202e5996d100d.tar.bz2 yuzu-bb3440f7c46a3a2478f63bf9609202e5996d100d.tar.lz yuzu-bb3440f7c46a3a2478f63bf9609202e5996d100d.tar.xz yuzu-bb3440f7c46a3a2478f63bf9609202e5996d100d.tar.zst yuzu-bb3440f7c46a3a2478f63bf9609202e5996d100d.zip |
Diffstat (limited to '')
-rw-r--r-- | externals/find-modules/Findinih.cmake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/externals/find-modules/Findinih.cmake b/externals/find-modules/Findinih.cmake index 844396471..8d1a07243 100644 --- a/externals/find-modules/Findinih.cmake +++ b/externals/find-modules/Findinih.cmake @@ -4,10 +4,7 @@ find_package(PkgConfig QUIET) if (PKG_CONFIG_FOUND) - pkg_search_module(INIREADER QUIET IMPORTED_TARGET GLOBAL INIReader) - if (INIREADER_FOUND) - add_library(inih::INIReader ALIAS PkgConfig::INIREADER) - endif() + pkg_search_module(INIREADER QUIET IMPORTED_TARGET INIReader) endif() include(FindPackageHandleStandardArgs) @@ -15,3 +12,7 @@ find_package_handle_standard_args(inih REQUIRED_VARS INIREADER_LINK_LIBRARIES VERSION_VAR INIREADER_VERSION ) + +if (inih_FOUND AND NOT TARGET inih::INIReader) + add_library(inih::INIReader ALIAS PkgConfig::INIREADER) +endif() |