mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 23:49:06 +08:00
34 lines
953 B
Diff
34 lines
953 B
Diff
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}
|
|
)
|