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/Findenet.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/Findenet.cmake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/externals/find-modules/Findenet.cmake b/externals/find-modules/Findenet.cmake index 663a2592f..6dae76f4c 100644 --- a/externals/find-modules/Findenet.cmake +++ b/externals/find-modules/Findenet.cmake @@ -4,10 +4,7 @@ find_package(PkgConfig QUIET) if (PKG_CONFIG_FOUND) - pkg_search_module(ENET QUIET IMPORTED_TARGET GLOBAL libenet) - if (ENET_FOUND) - add_library(enet::enet ALIAS PkgConfig::ENET) - endif() + pkg_search_module(ENET QUIET IMPORTED_TARGET libenet) endif() include(FindPackageHandleStandardArgs) @@ -15,3 +12,7 @@ find_package_handle_standard_args(enet REQUIRED_VARS ENET_LINK_LIBRARIES VERSION_VAR ENET_VERSION ) + +if (enet_FOUND AND NOT TARGET enet::enet) + add_library(enet::enet ALIAS PkgConfig::ENET) +endif() |