MantisBT - CMake
View Issue Details
0012459CMakeModulespublic2011-09-15 04:362016-06-10 14:31
Daniel Franke 
Kitware Robot 
normalfeaturealways
closedmoved 
CMake-2-8 
 
0012459: wish: CheckFortranSourceCompiles.cmake/CheckFortranCompilerFlags.cmake
It would be nice to have CheckFortranSourceCompiles.cmake CheckFortranCompilerFlags.cmake similar to CheckC[XX]SourceCompiles.cmake and
CheckC[XX]CompilerFLags.cmake.
No tags attached.
? CheckFortranCompilerFlag.cmake (1,097) 2012-07-06 07:35
https://public.kitware.com/Bug/file/4379/CheckFortranCompilerFlag.cmake
? CheckFortranSourceCompiles.cmake (2,680) 2012-07-06 07:35
https://public.kitware.com/Bug/file/4380/CheckFortranSourceCompiles.cmake
Issue History
2011-09-15 04:36Daniel FrankeNew Issue
2011-09-30 07:12Maik BeckmannNote Added: 0027497
2012-04-11 18:23Rolf Eike BeerCategoryCMake => Modules
2012-07-06 07:35Daniel FrankeFile Added: CheckFortranCompilerFlag.cmake
2012-07-06 07:35Daniel FrankeFile Added: CheckFortranSourceCompiles.cmake
2012-07-06 07:38Daniel FrankeNote Added: 0029928
2016-06-10 14:28Kitware RobotNote Added: 0041903
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0027497)
Maik Beckmann   
2011-09-30 07:12   
I second this feature request.

The MKL that intel's current fortran compiler ships needs openmp to be activa. It would be nice to be able to just write something like

 check_fortran_source_compiles(
 "
 program openmp_test
   use omp_lib
 end program openmp_test
 "
 FORTRAN_OPENMP)

I will most likely copy&paste the content CheckCSourceCompiles.cmake and adapt it. If I'm happy with the results, I'll post it here.
(0029928)
Daniel Franke   
2012-07-06 07:38   
I've uploaded two files based on the corresponding CXX versions that work for me. Maybe they could be included at some point?

Thanks.
(0041903)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.