Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release flags to fortran name mangling check (TriBITS #23)
There is an issue with the config_tests/FortranMangling.cmake. The issues stems from Windows variety of system libraries. One can use /MD[d] /MT[d] /LD[d] for linking their different libraries MSVCRT.lib, MSVCRTD.lib, LIBCMT.lib, LIBCMTD.lib. CMake typically defaults to /MD for release and /MDd for debug. If one needs a static build overriding all compiler flags with /MT[d] is necessary. The FortranMangling.cmake doesn't pass the build type compiler flags through which usually results in duplicate defined symbols, because C/C++ will link against LIBCMT and Fortran will link agains MSVCRT. This patch resolves the issue.
- Loading branch information