[CMake] Installing compiled fortran *.mod files

Biddiscombe, John A. biddisco at cscs.ch
Tue May 11 07:53:55 EDT 2010


I can't seem to find a way of installing the compiled mod files from a mixed fortran/C/C++ project (on windows and linux).

I can see all the mod files in ${CMAKE_Fortran_MODULE_DIRECTORY}, but various attempts to install them after compilation fail.

My closest effort looks something like this

INSTALL (
CODE
"EXECUTE_PROCESS (COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR} ${CMAKE_INSTALL_PREFIX}/fortran)"
)

but cmake dies on make install with
>CMake Error: cmake version 2.8.0
6>Usage: C:/Program Files/cmake-2.8.0/bin/cmake.exe -E [command] [arguments ...]
6>Available commands: .....lots of the usaul stuff.

Is there a way that works 'out of the box'

Thanks

JB




--
John Biddiscombe,                            email:biddisco @ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100511/d2957120/attachment.htm>


More information about the CMake mailing list