[CMake] Using CMake with ifort compiler

Patrick Spendrin ps_ml at gmx.de
Thu May 3 13:47:03 EDT 2012


Am 03.05.2012 16:26, schrieb Alain Leblanc:
> The cmake documentation for add_subdirectory() states that the
> CMakeLists files in the subdirectories should contain their own
> project() command invocation. Your build file in the subdirectory does
> not contain one. I don't know that it will be automatically be seen by
> CMake as a fortran project because this is what the project in the top
> directory is.
> 

You're supposed to add another project() call in the subdirectory only
if you use EXCLUDE_FROM_ALL and not in general.

regards,
Patrick


More information about the CMake mailing list