aboutsummaryrefslogtreecommitdiff
path: root/ports/netcdf-c/no-install-deps.patch
blob: 535a0dc088a5bc2a70453553e2bc8eae00f5ed2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd7c4f8..95fb01c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1830,7 +1830,7 @@ ADD_SUBDIRECTORY(docs)
 # install them in the binary dir. Grab all of the .libs, put them
 # in the libdir.
 ##
-IF(MSVC)
+IF(MSVC AND NOT DISABLE_INSTALL_DEPENDENCIES)
   FILE(GLOB COPY_FILES ${CMAKE_PREFIX_PATH}/lib/*.lib)
   INSTALL(FILES ${COPY_FILES}
   DESTINATION ${CMAKE_INSTALL_LIBDIR}