Changeset 2872 for trunk/cmake
- Timestamp:
- 12/03/13 13:09:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmake/withcasa.cmake
r2847 r2872 96 96 set( CASACORE_PATHS "${casaroot}/${arch};${casaroot};/usr/local;/usr" ) 97 97 98 set( epochdelta 1385403204 ) 99 if ( 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 ) 102 elseif( 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 ) 105 else( ) 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 ) 108 endif( ) 109 set(asap_soversion ${__asap_soversion} CACHE STRING "version for shared objects") 110 message( STATUS "shared object version number ${asap_soversion}" ) 98 111 99 112 #
Note:
See TracChangeset
for help on using the changeset viewer.