source: PSPA/madxPSPA/cmake/compilers/setupLahey.cmake

Last change on this file was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 931 bytes
Line 
1###
2#
3# This file sets up specific flags for the Lahey compiler
4#
5###
6
7
8if(CMAKE_Fortran_COMPILER MATCHES "lf95")
9    if ( MADX_FORCE_32 )
10        message( WARNING " On a 64 bit system you need to use the toolchain-file (see README) to get anywhere with the 32bit compiler.")
11    endif ( MADX_FORCE_32 )
12    set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Cpp")
13    set(CMAKE_Fortran_FLAGS_RELEASE " --o2 --tp  ")
14    set(CMAKE_SKIP_RPATH ON)
15    set(CMAKE_Fortran_FLAGS_DEBUG   " --info --f95 --lst -V -g  --ap --trace --trap --verbose")
16    set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "") #suppress rdynamic which doesn't work for lf95...
17    if ( MADX_STATIC )
18        set(CMAKE_Fortran_LINK_FLAGS   "${CMAKE_Fortran_LINK_FLAGS} -static ")
19    endif ()
20    if(IS32BIT)
21        set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Wa,--32")
22    endif()
23else()
24    message("You used setupLahey.cmake but it had no effect")
25endif()
Note: See TracBrowser for help on using the repository browser.