Unidata / netcdf-cxx4

Official GitHub repository for netCDF-C++ libraries and utilities.
Other
124 stars 49 forks source link

Installation directory for windows dll #57

Closed tonytheodore closed 5 years ago

tonytheodore commented 6 years ago

When cross building for windows with mingw, the usual convention is to install dlls into bin rather than lib. The small change below achieves this:

diff --git a/cxx4/CMakeLists.txt b/cxx4/CMakeLists.txt
index 431eb45..9d55faa 100644
--- a/cxx4/CMakeLists.txt
+++ b/cxx4/CMakeLists.txt
@@ -44,4 +44,5 @@ INSTALL(
 INSTALL(
   TARGETS netcdf-cxx4
   DESTINATION ${CMAKE_INSTALL_LIBDIR}
+  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
   )