Re: [CMake] Creating DLL from FORTRAN code

2015-02-25 Thread Petr Kmoch
You're not giving the DLL micro_linMatl_l any source files, so there's nothing to build. You need to list at least one source file in the add_library() call. You mentioned a main subroutine in your first e-mail; the file containing the main subroutine should be listed in the add_library(SHARED) cal

Re: [CMake] Creating DLL from FORTRAN code

2015-02-25 Thread Doron Klepach
Hello Petr, Thank you for the quick reply. At this point I am not getting any errors, but nothing happens when I build the sln in Visual Studio -> no dll is created. Here is the main CMake code: cmake_minimum_required (VERSION 3.1) project (micro_linMatl_I) enable_language (Fortran) # The versio

Re: [CMake] Creating DLL from FORTRAN code

2015-02-25 Thread Petr Kmoch
Hi Doron, it would be helpful if you provided the error you're getting from add_library(), and also showed the exact CMake code you used. Petr On Wed, Feb 25, 2015 at 1:57 PM, Doron Klepach wrote: > Hello there, > > I am new to CMake and I am trying to convert a project to work with CMake. > >

[CMake] Creating DLL from FORTRAN code

2015-02-25 Thread Doron Klepach
Hello there, I am new to CMake and I am trying to convert a project to work with CMake. As a part of the process I need to create a DLL from a FORTRAN code. Here are some details: *The code works on Visual Studio and creates the DLL as required. *The main subroutine looks like this: subroutine