diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-07-12 19:25:33 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-07-17 16:58:02 (GMT) |
commit | 7a9c852c2c1be7fd0b7c3a97b3e7f81227b35b43 (patch) | |
tree | 1aa67a97fbe2e3dba7e469917fd6020465dda591 /config/cmake_ext_mod/HDFMacros.cmake | |
parent | 7174b5c135f39b448925551c433cb60fc618d7af (diff) | |
download | hdf5-7a9c852c2c1be7fd0b7c3a97b3e7f81227b35b43.zip hdf5-7a9c852c2c1be7fd0b7c3a97b3e7f81227b35b43.tar.gz hdf5-7a9c852c2c1be7fd0b7c3a97b3e7f81227b35b43.tar.bz2 |
HDFFV-8631, HDFFV-10595, HDFFV-10845
Diffstat (limited to 'config/cmake_ext_mod/HDFMacros.cmake')
-rw-r--r-- | config/cmake_ext_mod/HDFMacros.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake index 0a4598d..d145607 100644 --- a/config/cmake_ext_mod/HDFMacros.cmake +++ b/config/cmake_ext_mod/HDFMacros.cmake @@ -179,7 +179,12 @@ macro (HDF_IMPORT_SET_LIB_OPTIONS libtarget libname libtype libversion) ) endif () else () - if (CYGWIN) + if (MINGW) + set_target_properties (${libtarget} PROPERTIES + IMPORTED_IMPLIB "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${IMPORT_LIB_NAME}.lib" + IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${IMPORT_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}" + ) + elseif (CYGWIN) set_target_properties (${libtarget} PROPERTIES IMPORTED_IMPLIB "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_IMPORT_LIBRARY_PREFIX}${IMPORT_LIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX}" IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_IMPORT_LIBRARY_PREFIX}${IMPORT_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}" |