aboutsummaryrefslogtreecommitdiff
path: root/ports/netcdf-cxx4/install-destination.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-02-28 03:23:20 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-02-28 03:23:20 -0800
commita92230f9c8bc1eae1fdf24b49aa49d02ac2c9ad6 (patch)
tree6658366c26072d7de3004d98006b2d7067969b72 /ports/netcdf-cxx4/install-destination.patch
parente1e0b7a6a9a0dac912b7857dea879a69bb782911 (diff)
downloadvcpkg-a92230f9c8bc1eae1fdf24b49aa49d02ac2c9ad6.tar.gz
vcpkg-a92230f9c8bc1eae1fdf24b49aa49d02ac2c9ad6.zip
[netcdf-cxx4] Initial commit of version 4.3.0
Diffstat (limited to 'ports/netcdf-cxx4/install-destination.patch')
-rw-r--r--ports/netcdf-cxx4/install-destination.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/ports/netcdf-cxx4/install-destination.patch b/ports/netcdf-cxx4/install-destination.patch
new file mode 100644
index 000000000..7ff4e08c7
--- /dev/null
+++ b/ports/netcdf-cxx4/install-destination.patch
@@ -0,0 +1,33 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6673282..d6c7a78 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -522,10 +522,14 @@ write_basic_package_version_file(
+ COMPATIBILITY SameMajorVersion
+ )
+
++if(NOT DEFINED CMAKE_INSTALL_CMAKECONFIGDIR)
++ set(CMAKE_INSTALL_CMAKECONFIGDIR ${CMAKE_INSTALL_LIBDIR}/cmake/netCDFCxx)
++endif()
++
+ install(
+ FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/netCDF/netCDFCxxConfigVersion.cmake"
+- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/netCDFCxx
++ DESTINATION ${CMAKE_INSTALL_CMAKECONFIGDIR}
+ COMPONENT headers
+ )
+
+diff --git a/cxx4/CMakeLists.txt b/cxx4/CMakeLists.txt
+index 431eb45..0423594 100644
+--- a/cxx4/CMakeLists.txt
++++ b/cxx4/CMakeLists.txt
+@@ -43,5 +43,7 @@ INSTALL(
+ )
+ INSTALL(
+ TARGETS netcdf-cxx4
+- DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ )