[CMake] Problem with Fortran module enclosed in #ifdef

Alin M Elena alinm.elena at googlemail.com
Fri Jan 9 09:06:53 EST 2009


Hi Martin,

the compiler decides which files get preprocessed and which files not.

here is some info from ifort

       o      Filenames with the suffix .f, .for, or .ftn are  interpreted  as
              fixed-form Fortran source files.

       o      Filenames  with  the  suffix  .fpp,  .F, .FOR, .FTN, or .FPP are
              interpreted as fixed-form Fortran source files,  which  must  be
              preprocessed by the fpp preprocessor before being compiled.

you can change the behaviour if I remember correctly with ADD_DEFINITION from 
cmake and SET_PROPERTIES for individual files.

Alin

-- 
 ______________________________________________________________________
 "...if the universities will not study useless subjects, who will?"
                             G. F. Fitzgerald, Nature, 45/46, 392 (1892)
 ______________________________________________________________________
 Mr. Alin M. ELENA
 Atomistic Simulation Centre
 School of Mathematics and Physics
 Queen's University Belfast
 Office: +44 (0)28 9097 1428
 Fax: +44 (0)28 9097 5359
 http://titus.phy.qub.ac.uk/group/Alin/
 alin.elena at yahoo.co.uk
 alin.elena at qub.ac.uk
 ______________________________________________________________________


More information about the CMake mailing list