build: Get rid of pkgconfig as much as possible (#1517)

This commit is contained in:
Nik
2024-01-26 12:13:22 +01:00
committed by GitHub
parent b2121b25c1
commit 6ae86ce906
10 changed files with 218 additions and 31 deletions

View File

@@ -7,8 +7,7 @@ if (NOT USE_SYSTEM_MINIAUDIO)
set_target_properties(miniaudio PROPERTIES POSITION_INDEPENDENT_CODE ON)
set(MINIAUDIO_LIBRARIES miniaudio)
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(miniaudio REQUIRED IMPORTED_TARGET miniaudio)
find_package(miniaudio REQUIRED)
endif()
add_imhex_plugin(