- Timestamp:
- 03/06/14 19:32:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmake/withcasa.cmake
r2893 r2898 7 7 if( APPLE ) 8 8 if( CMAKE_SYSTEM MATCHES ^Darwin-10 OR 9 10 9 CMAKE_SYSTEM MATCHES ^Darwin-11 OR 10 CMAKE_SYSTEM MATCHES ^Darwin-12 ) 11 11 if ( NOT arch ) 12 12 set( arch darwin64 ) … … 101 101 set( CASACORE_PATHS "${casaroot}/${arch};${casaroot};/usr/local;/usr" ) 102 102 103 set( epochdelta 1385403204 ) 104 if ( EXISTS ${CMAKE_INSTALL_PREFIX}/${arch}/casa_sover.txt ) 105 execute_process( COMMAND perl -e "while (<>) { chomp and print if (! m/^\#/ ) }" ${CMAKE_INSTALL_PREFIX}/${arch}/casa_sover.txt 106 OUTPUT_VARIABLE __asap_soversion ) 107 elseif( EXISTS ${CMAKE_INSTALL_PREFIX}/casa_sover.txt ) 108 execute_process( COMMAND perl -e "while (<>) { chomp and print if (! m/^#/ ) }" ${CMAKE_INSTALL_PREFIX}/casa_sover.txt 109 OUTPUT_VARIABLE __asap_soversion ) 103 SET(NO_SOVERSION FALSE CACHE BOOL "do not add version information to shared libraries") 104 if( NOT NO_SOVERSION ) 105 set( epochdelta 1385403204 ) 106 if ( EXISTS ${CMAKE_INSTALL_PREFIX}/${arch}/casa_sover.txt ) 107 execute_process( COMMAND perl -e "while (<>) { chomp and print if (! m/^\#/ ) }" ${CMAKE_INSTALL_PREFIX}/${arch}/casa_sover.txt 108 OUTPUT_VARIABLE __asap_soversion ) 109 elseif( EXISTS ${CMAKE_INSTALL_PREFIX}/casa_sover.txt ) 110 execute_process( COMMAND perl -e "while (<>) { chomp and print if (! m/^#/ ) }" ${CMAKE_INSTALL_PREFIX}/casa_sover.txt 111 OUTPUT_VARIABLE __asap_soversion ) 112 else( ) 113 execute_process( COMMAND perl -e "$t=time( )-${epochdelta};$z=$t & 0xff; $y=($t>>8)&0xff; $x=($t>>16)&0xffff; print \"$x.$y.$z\"" 114 OUTPUT_VARIABLE __asap_soversion ) 115 endif( ) 116 set(asap_soversion ${__asap_soversion} CACHE STRING "version for shared objects") 117 message( STATUS "Shared object version number ${asap_soversion}" ) 110 118 else( ) 111 execute_process( COMMAND perl -e "$t=time( )-${epochdelta};$z=$t & 0xff; $y=($t>>8)&0xff; $x=($t>>16)&0xffff; print \"$x.$y.$z\"" 112 OUTPUT_VARIABLE __asap_soversion ) 119 message( STATUS "User disabled shared library versioning" ) 113 120 endif( ) 114 set(asap_soversion ${__asap_soversion} CACHE STRING "version for shared objects")115 message( STATUS "shared object version number ${asap_soversion}" )116 121 117 122 #
Note:
See TracChangeset
for help on using the changeset viewer.