<div dir="ltr">I figured it out. My version of Cmake (2.8.2) does not have the Fortran_FORMAT property. <div><br></div><div>Thanks!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 1:15 PM, Nils Gladitz <span dir="ltr"><<a href="mailto:nilsgladitz@gmail.com" target="_blank">nilsgladitz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="">
    <div>On 13.03.2014 17:40, Jack Stalnaker
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Can someone provide an example of Fortran_FORMAT in
        use? I cannot find anything other than a definition of the
        property online. Does one use
        <div><br>
        </div>
      </div>
    </blockquote>
    <br></div>
    I am not much of a Fortran person but:<br>
    <br>
    <blockquote>cmake_minimum_required(VERSION 2.8.12)<br>
      <br>
      project(Foo Fortran)<br>
      <br>
      add_executable(free free.f)<br>
      set_target_properties(free PROPERTIES Fortran_FORMAT "FREE")<br>
      <br>
      add_executable(fixed fixed.f)<br>
      set_target_properties(fixed PROPERTIES Fortran_FORMAT "FIXED")<br>
    </blockquote>
    Produces the following compile command on my system (with the gnu
    Fortran compiler):<br>
    <br>
    <blockquote>/usr/bin/f95    -ffixed-form -c
      /home/ngladitz/src/test/fortran/fixed.f -o
      CMakeFiles/fixed.dir/fixed.f.o<br>
      /usr/bin/f95    -ffree-form -c
      /home/ngladitz/src/test/fortran/free.f -o
      CMakeFiles/free.dir/free.f.o<br>
    </blockquote>
    <br>
    The respective -ffixed-form -ffree-form options are compiler
    specific.<br>
    Which compiler are you using?<span class="HOEnZb"><font color="#888888"><br>
    <br>
    Nils<br>
  </font></span></div>

</blockquote></div><br></div>