Changes in trunk/CMakeLists.txt [2298:2465]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r2298 r2465 15 15 message( STATUS "USE_LIBCASACORE = " ${USE_LIBCASACORE} ) 16 16 message( STATUS "STANDALONE = " ${STANDALONE} ) 17 18 # Use casapy's fork of casacore 19 if ( NOT STANDALONE ) 20 add_definitions( -DUSE_CASAPY ) 21 endif () 17 22 18 23 # Define compiler paths on OSX 10.5. This must be done before invoking project() … … 42 47 # default is RelWithDebInfo 43 48 # 49 50 44 51 if ( NOT CMAKE_BUILD_TYPE ) 45 52 set( CMAKE_BUILD_TYPE RelWithDebInfo ) … … 86 93 if( APPLE ) 87 94 set( SO dylib ) 88 if( CMAKE_SYSTEM MATCHES ^Darwin-10 ) 95 if( CMAKE_SYSTEM MATCHES ^Darwin-10 OR 96 CMAKE_SYSTEM MATCHES ^Darwin-11 ) 89 97 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 ) 91 101 set( archflag x86_64 ) 92 102 elseif( EXISTS /opt/casa/core2-apple-darwin10 ) … … 264 274 -DPYVERSION=${PV} ) 265 275 else() 276 # with CASA 266 277 if( NOT PYTHON_FOUND ) 267 278 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. 269 282 # (The library named libpython.2.5.2.dylib seems to exist only in the CASA world.) 270 283 else() … … 276 289 277 290 casa_find( 278 PYTHON${_v} 291 PYTHON${_v} 292 #PREFIX_HINTS ${PYTHON_ROOT_DIR} 279 293 LIBS python${_v} 280 294 NO_REQUIRE … … 312 326 # Python library was not in a lib(64) directory! 313 327 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 ) 314 335 set( python_prefix ${casa_packages} ) 315 336 endif() … … 585 606 # libraries and executables 586 607 # 608 set( ASAPPYLIB _asap ) 587 609 set( ASAPLIB asap ) 588 610 set( PYRAPLIB pyrap ) … … 590 612 set( ASAP2TO3 asap2to3 ) 591 613 if ( NOT STANDALONE ) 592 set( ASDM2ASAP_OLD oldasdm2ASAP )614 # set( ASDM2ASAP_OLD oldasdm2ASAP ) 593 615 set( ASDM2ASAP asdm2ASAP ) 594 616 endif()
Note:
See TracChangeset
for help on using the changeset viewer.