summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod
diff options
context:
space:
mode:
authorMichel Zou <xantares09@hotmail.com>2020-10-30 09:32:34 (GMT)
committerMichel Zou <xantares09@hotmail.com>2020-10-30 09:46:56 (GMT)
commit0e9981aa59054cccd30154f22c01903a02f8d670 (patch)
treecfcd687d9b4a74066a886b40d2fcea0cbdf580c4 /config/cmake_ext_mod
parent6c0f954d683142e123baa4d48f5a69d5e20aa11d (diff)
downloadhdf5-0e9981aa59054cccd30154f22c01903a02f8d670.zip
hdf5-0e9981aa59054cccd30154f22c01903a02f8d670.tar.gz
hdf5-0e9981aa59054cccd30154f22c01903a02f8d670.tar.bz2
CMake: Set specific INSTALL_DATA_DIR only on MSVC
For MinGW we want INSTALL_DATA_DIR to be set to share instead of . to properly install files in a standard package layout.
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index eb0392e..1a1c571 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -343,7 +343,7 @@ macro (HDF_DIR_PATHS package_prefix)
set (${package_prefix}_INSTALL_INCLUDE_DIR include)
endif ()
if (NOT ${package_prefix}_INSTALL_DATA_DIR)
- if (NOT WIN32)
+ if (NOT MSVC)
if (APPLE)
if (${package_prefix}_BUILD_FRAMEWORKS)
set (${package_prefix}_INSTALL_EXTRA_DIR ../SharedSupport)