aboutsummaryrefslogtreecommitdiff
path: root/ports/netcdf-c/config-pkg-location.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-02-28 02:09:59 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-02-28 02:09:59 -0800
commit3cc5cb8bca033f980fa22f8792a12abc4e962df9 (patch)
tree88ce029acbb32e4dc2a3c3d6ad3c4469e16d7ddb /ports/netcdf-c/config-pkg-location.patch
parent2c9cf2a520ca704e40f51756497f3bd833d45359 (diff)
downloadvcpkg-3cc5cb8bca033f980fa22f8792a12abc4e962df9.tar.gz
vcpkg-3cc5cb8bca033f980fa22f8792a12abc4e962df9.zip
[netcdf-c] Initial commit of version 4.4.1.1
Diffstat (limited to 'ports/netcdf-c/config-pkg-location.patch')
-rw-r--r--ports/netcdf-c/config-pkg-location.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/ports/netcdf-c/config-pkg-location.patch b/ports/netcdf-c/config-pkg-location.patch
new file mode 100644
index 000000000..532082ccb
--- /dev/null
+++ b/ports/netcdf-c/config-pkg-location.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 46892ee..803ff46 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1742,7 +1742,9 @@ FILE(COPY ${netCDF_SOURCE_DIR}/include/netcdf_meta.h
+ # Create CMake package configuration files. With these, other packages using
+ # cmake should be able to find netcdf using find_package and find_library.
+ # The EXPORT call is paired with one in liblib.
+-set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/netCDF)
++if(NOT DEFINED ConfigPackageLocation)
++ set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/netCDF)
++endif(NOT DEFINED ConfigPackageLocation)
+
+ install(EXPORT netCDFTargets
+ DESTINATION ${ConfigPackageLocation}