Changeset 2400
- Timestamp:
- 01/20/12 19:04:16 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r2298 r2400 86 86 if( APPLE ) 87 87 set( SO dylib ) 88 if( CMAKE_SYSTEM MATCHES ^Darwin-10 ) 88 if( CMAKE_SYSTEM MATCHES ^Darwin-10 OR 89 CMAKE_SYSTEM MATCHES ^Darwin-11 ) 89 90 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 ) 91 94 set( archflag x86_64 ) 92 95 elseif( EXISTS /opt/casa/core2-apple-darwin10 ) … … 264 267 -DPYVERSION=${PV} ) 265 268 else() 269 # with CASA 266 270 if( NOT PYTHON_FOUND ) 267 271 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. 269 275 # (The library named libpython.2.5.2.dylib seems to exist only in the CASA world.) 270 276 else() … … 276 282 277 283 casa_find( 278 PYTHON${_v} 284 PYTHON${_v} 285 #PREFIX_HINTS ${PYTHON_ROOT_DIR} 279 286 LIBS python${_v} 280 287 NO_REQUIRE … … 312 319 # Python library was not in a lib(64) directory! 313 320 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 ) 314 328 set( python_prefix ${casa_packages} ) 315 329 endif() -
trunk/cmake/withcasa.cmake
r2399 r2400 6 6 # environment dependent settings 7 7 if( APPLE ) 8 if( CMAKE_SYSTEM MATCHES ^Darwin-10 ) 8 if( CMAKE_SYSTEM MATCHES ^Darwin-10 OR 9 CMAKE_SYSTEM MATCHES ^Darwin-11 ) 9 10 if ( NOT arch ) 10 11 set( arch darwin64 ) 11 12 endif() 12 13 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 ) 14 17 set( archflag x86_64 ) 15 18 elseif( EXISTS /opt/casa/core2-apple-darwin10 ) … … 20 23 endif() 21 24 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() 23 30 else() 24 31 set( casa_packages /opt/casa/core2-apple-darwin10 )
Note:
See TracChangeset
for help on using the changeset viewer.