[CMake] fortran flags in a c++ linked executable

Denis Scherbakov denis_scherbakov at yahoo.com
Wed Apr 1 04:10:27 EDT 2009


Elena,

Try to compile and link by hand. For example - write one CPP, one F90, then compile them with flags you want and link them with flags you want. After you find out, what you need, you may start experimenting with CMake flags.

gmake VERBOSE=1

can help you alot to see what is happening during compilation and linking.

Denis

 
> Thank you for your patience.  I now have this set via
> 	set( CMAKE_EXE_LINKER_FLAGS "-mbig-endian" )
> 
> However, this does not seem to affect the reading of the
> big-endian binary file (which is in read in fortran). 
> Perhaps I am still not setting it properly?
> 
> James



      


More information about the CMake mailing list