summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod
diff options
context:
space:
mode:
authorMichel Zou <xantares09@hotmail.com>2020-10-30 09:36:32 (GMT)
committerMichel Zou <xantares09@hotmail.com>2020-10-30 12:19:18 (GMT)
commitde4ccdfd630cc1edfac9f9b82c20ad120340ed4b (patch)
treea06c318119e3cb95c7cd06a72079865dba77730b /config/cmake_ext_mod
parent6c0f954d683142e123baa4d48f5a69d5e20aa11d (diff)
downloadhdf5-de4ccdfd630cc1edfac9f9b82c20ad120340ed4b.zip
hdf5-de4ccdfd630cc1edfac9f9b82c20ad120340ed4b.tar.gz
hdf5-de4ccdfd630cc1edfac9f9b82c20ad120340ed4b.tar.bz2
CMake: Add an option to opt-out MSVC naming convention
We might want to keep the default mingw import name, see: https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-hdf5/hdf5-default-import-suffix.patch
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index eb0392e..74dd35b 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -143,8 +143,8 @@ macro (HDF_SET_LIB_OPTIONS libtarget libname libtype)
endif ()
endif ()
- #----- Use MSVC Naming conventions for Shared Libraries
- if (MINGW AND ${libtype} MATCHES "SHARED")
+ option (HDF5_MSVC_NAMING_CONVENTION "Use MSVC Naming conventions for Shared Libraries" OFF)
+ if (HDF5_MSVC_NAMING_CONVENTION AND MINGW AND ${libtype} MATCHES "SHARED")
set_target_properties (${libtarget} PROPERTIES
IMPORT_SUFFIX ".lib"
IMPORT_PREFIX ""