Hi Peter.
How is it not working?
Also, I believe you shouldn't call enable_language() before calling
project(). And since you apparently need Fortran unconditionally, you
might simply start your CMakeList like this:
cmake_minimum_required(VERSION 2.8)
project(MYFORTRANLIB C CXX Fortran)
# ...
Hello,
I would like to make a static library from FORTRAN sources (as opposed to
C/C++).
I have in my CMakeLists.txt :
cmake_minimum_required(VERSION 2.8)
enable_language (Fortran)
PROJECT(MYFORTRANLIB)
get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER}
NAME)