vcpkg/ports/wavpack/CMakeLists-patch.diff
Crindzebra Sjimo 2071237e14
[wavpack] Update to 5.7.0 (#41244)
Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
2024-09-30 11:56:14 -04:00

26 lines
758 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c9f9e70..74b6ba2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -624,8 +624,19 @@ if(WAVPACK_INSTALL_CMAKE_MODULE)
write_basic_package_version_file(wavpack-config-version.cmake COMPATIBILITY SameMinorVersion)
endif()
+ configure_package_config_file(
+ ${CMAKE_CURRENT_LIST_DIR}/wavpack-config.cmake.in
+ "${CMAKE_CURRENT_BINARY_DIR}/wavpack-config.cmake"
+ INSTALL_DESTINATION ${CMAKE_INSTALL_PACKAGEDIR}
+ )
+
+ install(FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/wavpack-config.cmake"
+ DESTINATION ${CMAKE_INSTALL_PACKAGEDIR}
+ )
+
install(EXPORT wavpack-targets
- FILE wavpack-config.cmake
+ FILE wavpack-targets.cmake
NAMESPACE WavPack::
DESTINATION ${CMAKE_INSTALL_PACKAGEDIR}
)