

Furthermore all "._mod_static" targets must have all their "._" objects change their location and point to the output directory of the Fortran project created above. f90 files must be created and then added to the current project created from Cmake in Build_dir.

As very well stated here in order for the compilation to succeed a Fortran project containing all. The reason for this kind of errors after lots of search, is caused because the visual studio 2013 & 2019 cant handle a mix C and Fortran files in same project. The compiling stops with errors of the type:Įrror LNK1181 cannot open input file 'C:\Users\.\build_dir\src\sunmatrix\band\fmod\sundials_fsunmatrixband_mod_obj_static.dir\Debug\fsunmatrix_band_' sundials_fsunmatrixband_mod_staticĜ:\Users\.\build_dir\src\sunmatrix\band\fmod\LINKđ The problems start after I open the project and try to build the "ALL_BUILD" target. After pressing generate, the Visual studio 2019 project is being build.The Fortran compiler identification is Intel 2021.0228ĭetecting Fortran compiler ABI info - doneĭetermine Intel Fortran Compiler Implicit Link Pathĭetermine Intel Fortran Compiler Implicit Link Path - doneĬheck for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/2021.2.0/windows/bin/intel64/ifort.exe - skippedĬhecking whether C:/Program Files (x86)/Intel/oneAPI/compiler/2021.2.0/windows/bin/intel64/ifort.exe supports Fortran 90Ĭhecking whether C:/Program Files (x86)/Intel/oneAPI/compiler/2021.2.0/windows/bin/intel64/ifort.exe supports Fortran 90 - yesĬhecking whether C:/Program Files (x86)/Intel/oneAPI/compiler/2021.2.0/windows/bin/intel64/ifort.exe supports F2003Ĭhecking whether C:/Program Files (x86)/Intel/oneAPI/compiler/2021.2.0/windows/bin/intel64/ifort.exe supports F2003 - yes Cmake now locates the Intel compiler properly:

I select only the CVode and Build_Fortran_Module_Interface and I deselect everything that has to do with testing and examples. The Cmake finds all the Sundial 5.7 source (Arcode, CVode.).Performing Test COMPILER_HAS_DEPRECATED - Success Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed Performing Test COMPILER_HAS_DEPRECATED_ATTR The C compiler identification is MSVC 0.0Ĭheck for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/7/bin/Host圆4/圆4/cl.exe - skipped Selecting Windows SDK version 1.0 to target Windows 2.
