Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2752 for code/trunk/cmake


Ignore:
Timestamp:
Mar 6, 2009, 3:15:18 PM (16 years ago)
Author:
adrfried
Message:

don't fail if no /etc/hostname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/LibraryConfigTardis.cmake

    r2728 r2752  
    2626
    2727IF(UNIX AND NOT APPLE)
    28   FILE(STRINGS /etc/hostname HOSTNAME LIMIT_COUNT 1)
    29   IF(${HOSTNAME} MATCHES "^tardis-[a-z][0-9][0-9]$")
    30     SET (TARDIS ON)
     28  IF(EXISTS /etc/hostname)
     29    FILE(STRINGS /etc/hostname HOSTNAME LIMIT_COUNT 1)
     30    IF(${HOSTNAME} MATCHES "^tardis-[a-z][0-9][0-9]$")
     31      SET (TARDIS ON)
     32    ENDIF()
    3133  ENDIF()
    3234ENDIF()
Note: See TracChangeset for help on using the changeset viewer.