From 33d8955807b63150babf4ab39dcf8553495aa172 Mon Sep 17 00:00:00 2001 From: Lily <47812810+LilyWangL@users.noreply.github.com> Date: Wed, 11 Mar 2020 08:22:44 +0800 Subject: [PATCH] [openal-soft] Fix find_package failed (#10251) * [openal-soft] Fix find_package failed * [openal-soft] Add usage --- ports/openal-soft/portfile.cmake | 1 + ports/openal-soft/usage | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 ports/openal-soft/usage diff --git a/ports/openal-soft/portfile.cmake b/ports/openal-soft/portfile.cmake index 251123d8e9..38923de187 100644 --- a/ports/openal-soft/portfile.cmake +++ b/ports/openal-soft/portfile.cmake @@ -74,5 +74,6 @@ endforeach() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) vcpkg_copy_pdbs() diff --git a/ports/openal-soft/usage b/ports/openal-soft/usage new file mode 100644 index 0000000000..1807fb982a --- /dev/null +++ b/ports/openal-soft/usage @@ -0,0 +1,4 @@ +The package openal-soft provides CMake targets: + + find_package(OpenAL CONFIG REQUIRED) + target_link_libraries(main PRIVATE OpenAL::OpenAL)