Use openal-soft's cmake config rather than pkg-config file
This commit is contained in:
parent
d0fc0c8879
commit
3d40b243f6
1 changed files with 2 additions and 3 deletions
5
external/openal/CMakeLists.txt
vendored
5
external/openal/CMakeLists.txt
vendored
|
|
@ -15,9 +15,8 @@ if (DESKTOP_APP_USE_PACKAGED)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(OpenAL REQUIRED CONFIG)
|
||||||
pkg_check_modules(OPENAL REQUIRED IMPORTED_TARGET openal)
|
target_link_libraries(external_openal INTERFACE OpenAL::OpenAL)
|
||||||
target_link_libraries(external_openal INTERFACE PkgConfig::OPENAL)
|
|
||||||
return()
|
return()
|
||||||
elseif (WIN32)
|
elseif (WIN32)
|
||||||
target_include_directories(external_openal SYSTEM
|
target_include_directories(external_openal SYSTEM
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue