Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r2298 r2465  
    1515message( STATUS "USE_LIBCASACORE = " ${USE_LIBCASACORE} )
    1616message( STATUS "STANDALONE = " ${STANDALONE} )
     17
     18# Use casapy's fork of casacore 
     19if ( NOT STANDALONE )
     20  add_definitions( -DUSE_CASAPY )
     21endif ()
    1722
    1823# Define compiler paths on OSX 10.5. This must be done before invoking project()
     
    4247# default is RelWithDebInfo
    4348#
     49
     50
    4451if ( NOT CMAKE_BUILD_TYPE )
    4552   set( CMAKE_BUILD_TYPE RelWithDebInfo )
     
    8693if( APPLE )
    8794   set( SO dylib )
    88    if( CMAKE_SYSTEM MATCHES ^Darwin-10 )
     95   if( CMAKE_SYSTEM MATCHES ^Darwin-10 OR
     96                CMAKE_SYSTEM MATCHES ^Darwin-11 )
    8997      if( NOT archflag )
    90          if( EXISTS /opt/casa/darwin10-64b )
     98         if( EXISTS /opt/casa/darwin11 )
     99            set( archflag x86_64 )
     100         elseif( EXISTS /opt/casa/darwin10-64b )
    91101            set( archflag x86_64 )
    92102         elseif( EXISTS /opt/casa/core2-apple-darwin10 )
     
    264274      -DPYVERSION=${PV} )
    265275else()
     276   # with CASA
    266277   if( NOT PYTHON_FOUND )
    267278      if ( NOT PYTHON_LIBNAME )
    268          set( _names 2.9 2.8 2.7 2.6 2.5.2 2.5 )
     279         #set( _names 2.9 2.8 2.7 2.6 2.5.2 2.5 )
     280         set( _names 2.6 2.5.2 2.5 )
     281         # OSX 10.7 has Python2.7 by default. CASA has't yet supported python > 2.6 anyway.
    269282         # (The library named libpython.2.5.2.dylib seems to exist only in the CASA world.)
    270283      else()
     
    276289
    277290         casa_find(
    278             PYTHON${_v}
     291            PYTHON${_v}
     292            #PREFIX_HINTS ${PYTHON_ROOT_DIR}
    279293            LIBS python${_v}
    280294            NO_REQUIRE
     
    312326      # Python library was not in a lib(64) directory!
    313327      message( WARNING "Python library path \"${PYTHON${PYTHON_LIBNAME}_LIBRARIES}\" does not contain \"/lib(64)/lib${python_library}\"" )
     328      set( python_prefix ${casa_packages} )
     329   endif()
     330
     331   #
     332   # For some unknown reason cmake sets the /usr for Lion
     333   #
     334   if( APPLE )
    314335      set( python_prefix ${casa_packages} )
    315336   endif()
     
    585606# libraries and executables
    586607#
     608set( ASAPPYLIB _asap )
    587609set( ASAPLIB asap )
    588610set( PYRAPLIB pyrap )
     
    590612set( ASAP2TO3 asap2to3 )
    591613if ( NOT STANDALONE )
    592    set( ASDM2ASAP_OLD oldasdm2ASAP )
     614#   set( ASDM2ASAP_OLD oldasdm2ASAP )
    593615   set( ASDM2ASAP asdm2ASAP )
    594616endif()
Note: See TracChangeset for help on using the changeset viewer.