aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLily <47812810+LilyWangL@users.noreply.github.com>2020-03-11 08:22:44 +0800
committerGitHub <noreply@github.com>2020-03-10 17:22:44 -0700
commit33d8955807b63150babf4ab39dcf8553495aa172 (patch)
treec2dd862d3448ee28b24d5b11b8e8ebbfc9f2cb55
parent4468d7be57f6326885fe05bd97215789207bfa2b (diff)
downloadvcpkg-33d8955807b63150babf4ab39dcf8553495aa172.tar.gz
vcpkg-33d8955807b63150babf4ab39dcf8553495aa172.zip
[openal-soft] Fix find_package failed (#10251)
* [openal-soft] Fix find_package failed * [openal-soft] Add usage
-rw-r--r--ports/openal-soft/portfile.cmake1
-rw-r--r--ports/openal-soft/usage4
2 files changed, 5 insertions, 0 deletions
diff --git a/ports/openal-soft/portfile.cmake b/ports/openal-soft/portfile.cmake
index 251123d8e..38923de18 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 000000000..1807fb982
--- /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)