Changeset 1638


Ignore:
Timestamp:
18/10/11 13:19:49 (7 months ago)
Author:
Freddie Akeroyd
Message:

Fix fortran building. Refs #281

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r1637 r1638  
    9797if(SZIPLIB_FOUND) 
    9898   set(SZIP_LINK "-lsz") 
     99else(SZIPLIB_FOUND) 
     100   set(SZIP_LIB "") 
    99101endif(SZIPLIB_FOUND) 
    100102 
     
    120122option (BUILD_CONTRIB  
    121123        "Should I build the user contributions?" OFF) 
     124 
     125#Build user contributions 
     126option (BUILD_FORTRAN_BINDINGS  
     127        "Should I build the fortran bindings?" OFF) 
    122128 
    123129#Use HDF4 in build 
     
    193199 
    194200#We need to be able to check for Fortran F77/90 - but how do we do this? 
    195 if (BUILD_FORTRAN_BINDINGS) 
     201#if (BUILD_FORTRAN_BINDINGS) 
    196202    enable_language(Fortran) 
    197 endif (BUILD_FORTRAN_BINDINGS) 
     203#endif (BUILD_FORTRAN_BINDINGS) 
    198204 
    199205#We need a NXDOCDIR as a place to install the docs for various packages. 
  • trunk/applications/CMakeLists.txt

    r1636 r1638  
    3939add_subdirectory (NXconvert) 
    4040 
    41 if (CMAKE_Fortran_COMPILER_WORKS) 
     41if (BUILD_FORTRAN_BINDINGS AND CMAKE_Fortran_COMPILER_WORKS) 
    4242    add_subdirectory (NXdump) 
    43 endif(CMAKE_Fortran_COMPILER_WORKS) 
     43endif() 
    4444 
    4545add_subdirectory (nxingest) 
  • trunk/applications/NXbrowse/CMakeLists.txt

    r1636 r1638  
    2727#==================================================================== 
    2828 
    29 if (CMAKE_Fortran_COMPILER_WORKS) 
     29if (BUILD_FORTRAN_BINDINGS AND CMAKE_Fortran_COMPILER_WORKS) 
    3030 
    3131    include_directories(${CMAKE_BINARY_DIR}/bindings/f90) 
     
    4141    install (PROGRAMS NXbrowse90 DESTINATION bin) 
    4242 
    43 endif(CMAKE_Fortran_COMPILER_WORKS) 
     43endif() 
    4444 
    4545add_executable (nxbrowse NXbrowse.c) 
  • trunk/bindings/CMakeLists.txt

    r1636 r1638  
    2828# Recurse into the subdirectories. 
    2929add_subdirectory (cpp) 
    30 if (CMAKE_Fortran_COMPILER_WORKS) 
     30if (BUILD_FORTRAN_BINDINGS AND CMAKE_Fortran_COMPILER_WORKS) 
    3131    add_subdirectory (f77) 
    3232    add_subdirectory (f90) 
    33 endif (CMAKE_Fortran_COMPILER_WORKS) 
     33endif () 
    3434#add_subdirectory (idl) 
    3535if (NOT(Java_JAVAC_EXECUTABLE MATCHES NOTFOUND)) 
Note: See TracChangeset for help on using the changeset viewer.