Re: [CMake] How Do I Make A Static Library from FORTRAN and CPP sources?

2013-03-04 Thread Petr Kmoch
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) # ...

[CMake] How Do I Make A Static Library from FORTRAN and CPP sources?

2013-03-01 Thread Peter Willis
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)