Changeset 2872 for trunk/cmake


Ignore:
Timestamp:
12/03/13 13:09:42 (10 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): asap build with CASA

Description: introduced version numbering (common to casacore and CASA) to shared libraries of asap (_asap.so, libpyrap.so, libatnf.so, and libasap.so) when the package is build as a part of CASA.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/withcasa.cmake

    r2847 r2872  
    9696set( CASACORE_PATHS "${casaroot}/${arch};${casaroot};/usr/local;/usr" )
    9797
     98set( epochdelta 1385403204 )
     99if ( EXISTS ${CMAKE_INSTALL_PREFIX}/${arch}/casa_sover.txt )
     100    execute_process( COMMAND perl -e "while (<>) { chomp and print if (! m/^\#/ ) }" ${CMAKE_INSTALL_PREFIX}/${arch}/casa_sover.txt
     101                     OUTPUT_VARIABLE __asap_soversion )
     102elseif( EXISTS ${CMAKE_INSTALL_PREFIX}/casa_sover.txt )
     103    execute_process( COMMAND perl -e "while (<>) { chomp and print if (! m/^#/ ) }" ${CMAKE_INSTALL_PREFIX}/casa_sover.txt
     104                     OUTPUT_VARIABLE __asap_soversion )
     105else( )
     106    execute_process( COMMAND perl -e "$t=time( )-${epochdelta};$z=$t & 0xff; $y=($t>>8)&0xff; $x=($t>>16)&0xffff; print \"$x.$y.$z\""
     107                     OUTPUT_VARIABLE __asap_soversion )
     108endif( )
     109set(asap_soversion ${__asap_soversion} CACHE STRING "version for shared objects")
     110message( STATUS "shared object version number ${asap_soversion}" )
    98111
    99112#
Note: See TracChangeset for help on using the changeset viewer.