I need to build a compilation command of the form<div><br></div><div>  win32fe f90 -with -options -and source.f -o path/to/source.f.o</div><div><br></div><div>but setting CMAKE_Fortran_COMILER=/path/to/win32fe and CMAKE_Fortran_FLAGS=&quot;f90 -with -options&quot; does not work because CMake places other options in between:</div>
<div><br></div><div>  win32fe -o path/to/source.f.o -with -options source.f</div><div><br></div><div>which does not work because win32fe needs the compiler to come first.  Note that the C compiler seems to place the &quot;-o&quot; options later so CMAKE_C_COMPILER=/path/to/win32fo CMAKE_C_FLAGS=&quot;cl -with -options&quot; is working.</div>
<div><br></div><div>Is this difference in options placement intentional? Is there a robust way to make something be $1 in the command line?</div>