[CMake] Fortran project compiling with -isystem causing error

Brad King brad.king at kitware.com
Wed Mar 25 11:18:47 EDT 2015


On Tue, Mar 24, 2015 at 11:03 PM, Hugh Sorby wrote:
> I am trying to create a simple Fortran project that relies on a module file
> that has been built by another project.  I have added the directory
> containing the module file into the include_directories command but the
> project isn't compiling and raises an error can't find module.  The
> directory that I want to include shows up in the compile command but it is
> prefixed with -isystem if I change this manually to -I (capital i) then the
> project compiles successfully.  As I understand it the -isystem should be
> used for includes to be considered as system includes, but I haven't
> specified this in my include_directories command.

Please post an example CMakeLists.txt file demonstrating the problem
and Cc me.

Thanks,
-Brad


More information about the CMake mailing list