Changeset 2400


Ignore:
Timestamp:
01/20/12 19:04:16 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: build asap

Put in Release Notes: No

Module(s): asap

Description: Added cmake definitions to build asap on OSX 10.7 Lion


Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r2298 r2400  
    8686if( APPLE )
    8787   set( SO dylib )
    88    if( CMAKE_SYSTEM MATCHES ^Darwin-10 )
     88   if( CMAKE_SYSTEM MATCHES ^Darwin-10 OR
     89                CMAKE_SYSTEM MATCHES ^Darwin-11 )
    8990      if( NOT archflag )
    90          if( EXISTS /opt/casa/darwin10-64b )
     91         if( EXISTS /opt/casa/darwin11 )
     92            set( archflag x86_64 )
     93         elseif( EXISTS /opt/casa/darwin10-64b )
    9194            set( archflag x86_64 )
    9295         elseif( EXISTS /opt/casa/core2-apple-darwin10 )
     
    264267      -DPYVERSION=${PV} )
    265268else()
     269   # with CASA
    266270   if( NOT PYTHON_FOUND )
    267271      if ( NOT PYTHON_LIBNAME )
    268          set( _names 2.9 2.8 2.7 2.6 2.5.2 2.5 )
     272         #set( _names 2.9 2.8 2.7 2.6 2.5.2 2.5 )
     273         set( _names 2.6 2.5.2 2.5 )
     274         # OSX 10.7 has Python2.7 by default. CASA has't yet supported python > 2.6 anyway.
    269275         # (The library named libpython.2.5.2.dylib seems to exist only in the CASA world.)
    270276      else()
     
    276282
    277283         casa_find(
    278             PYTHON${_v}
     284            PYTHON${_v}
     285            #PREFIX_HINTS ${PYTHON_ROOT_DIR}
    279286            LIBS python${_v}
    280287            NO_REQUIRE
     
    312319      # Python library was not in a lib(64) directory!
    313320      message( WARNING "Python library path \"${PYTHON${PYTHON_LIBNAME}_LIBRARIES}\" does not contain \"/lib(64)/lib${python_library}\"" )
     321      set( python_prefix ${casa_packages} )
     322   endif()
     323
     324   #
     325   # For some unknown reason cmake sets the /usr for Lion
     326   #
     327   if( APPLE )
    314328      set( python_prefix ${casa_packages} )
    315329   endif()
  • trunk/cmake/withcasa.cmake

    r2399 r2400  
    66# environment dependent settings
    77if( APPLE )
    8    if( CMAKE_SYSTEM MATCHES ^Darwin-10 )
     8   if( CMAKE_SYSTEM MATCHES ^Darwin-10 OR
     9                CMAKE_SYSTEM MATCHES ^Darwin-11 )
    910      if ( NOT arch )
    1011         set( arch darwin64 )
    1112      endif()
    1213      if( NOT archflag )
    13          if( EXISTS /opt/casa/darwin10-64b )
     14         if( EXISTS /opt/casa/darwin11 )
     15            set( archflag x86_64 )
     16         elseif( EXISTS /opt/casa/darwin10-64b )
    1417            set( archflag x86_64 )
    1518         elseif( EXISTS /opt/casa/core2-apple-darwin10 )
     
    2023      endif()
    2124      if( archflag STREQUAL x86_64 )
    22          set( casa_packages /opt/casa/darwin10-64b )
     25         if( CMAKE_SYSTEM MATCHES ^Darwin-11 )
     26             set( casa_packages /opt/casa/darwin11 )
     27         else()
     28             set( casa_packages /opt/casa/darwin10-64b )
     29         endif()
    2330      else()
    2431         set( casa_packages /opt/casa/core2-apple-darwin10 )
Note: See TracChangeset for help on using the changeset viewer.