vcpkg/ports/libsndfile/fix-install-path.patch
JackBoosY efdd1f1766 [libsndfile]Fix install file path in linux. (#6455)
* [libsndfile]Fix install file path in linux.

* [libsndfile] Don't install HTML docs
2019-05-15 16:22:31 -07:00

32 lines
1.1 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cc35414..d629adf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -641,12 +641,12 @@ if (ENABLE_PACKAGE_CONFIG)
LibSndFileConfig.cmake
INSTALL_DESTINATION ${CMAKE_INSTALL_PACKAGEDIR})
- install(EXPORT LibSndFileTargets DESTINATION ${CMAKE_INSTALL_PACKAGEDIR})
+ install(EXPORT LibSndFileTargets DESTINATION share/libsndfile)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/LibSndFileConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/LibSndFileConfigVersion.cmake
DESTINATION
- ${CMAKE_INSTALL_PACKAGEDIR})
+ share/libsndfile)
elseif (NOT ENABLE_PACKAGE_CONFIG)
@@ -698,9 +698,9 @@ set (html_DATA
doc/embedded_files.html
doc/octave.html
doc/tutorial.html)
-install (FILES ${html_DATA} DESTINATION ${CMAKE_INSTALL_DOCDIR})
+#install (FILES ${html_DATA} DESTINATION ${CMAKE_INSTALL_DATADIR}/libsndfile)
-install (FILES ${CMAKE_CURRENT_BINARY_DIR}/sndfile.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+#install (FILES ${CMAKE_CURRENT_BINARY_DIR}/sndfile.pc DESTINATION share/libsndfile/pkgconfig)
#
# Testing