diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-01-05 20:30:23 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-01-05 20:30:23 (GMT) |
commit | 531f4d839d92f3991fed30b1587eddabb949a2b0 (patch) | |
tree | 55ca6a694d250d6d7f0b2e4693d3376a6f303a95 /config | |
parent | d3acc019dc51b249dd939a5e429f32fa26ace5f1 (diff) | |
download | hdf5-531f4d839d92f3991fed30b1587eddabb949a2b0.zip hdf5-531f4d839d92f3991fed30b1587eddabb949a2b0.tar.gz hdf5-531f4d839d92f3991fed30b1587eddabb949a2b0.tar.bz2 |
Fix link_libs and static CRT fortran
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake_ext_mod/HDFUseFortran.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/HDFUseFortran.cmake b/config/cmake_ext_mod/HDFUseFortran.cmake index 7bf4d81..5be2c49 100644 --- a/config/cmake_ext_mod/HDFUseFortran.cmake +++ b/config/cmake_ext_mod/HDFUseFortran.cmake @@ -15,6 +15,14 @@ #------------------------------------------------------------------------------- ENABLE_LANGUAGE (Fortran) +#------------------------------------------------------------------------------- +# Fix Fortran flags if we are compiling staticly on Windows using +# Windows_MT.cmake from config/cmake/UserMacros +#------------------------------------------------------------------------------- +if (BUILD_STATIC_CRT_LIBS) + TARGET_STATIC_CRT_FLAGS () +endif () + #----------------------------------------------------------------------------- # Detect name mangling convention used between Fortran and C #----------------------------------------------------------------------------- |