Last change
on this file since 1985 was
1981,
checked in by adrfried, 16 years ago
|
tardis fixes
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Line | |
---|
1 | ################# Tardis check ################## |
---|
2 | # This code checks whether the current machine # |
---|
3 | # is an ETH tardis box. # |
---|
4 | ################################################# |
---|
5 | |
---|
6 | # only run this test on a lunix/unix machine |
---|
7 | IF (UNIX) |
---|
8 | |
---|
9 | FIND_PROGRAM(UNAME_CMD "uname" |
---|
10 | PATHS "/usr/bin /bin") |
---|
11 | IF(NOT UNAME_CMD) |
---|
12 | MESSAGE(ERROR "Unable to find uname. Tardis-Check cannot be done.") |
---|
13 | ENDIF(NOT UNAME_CMD) |
---|
14 | |
---|
15 | # run uname -n to get nodename |
---|
16 | EXECUTE_PROCESS( |
---|
17 | COMMAND "${UNAME_CMD}" "-n" |
---|
18 | RESULT_VARIABLE UNAME_RV |
---|
19 | ERROR_VARIABLE UNAME_EV |
---|
20 | OUTPUT_VARIABLE UNAME_OV) |
---|
21 | |
---|
22 | IF (NOT "${UNAME_RV}" STREQUAL "0") |
---|
23 | MESSAGE(ERROR "ERROR: uname terminated unclean.") |
---|
24 | ENDIF (NOT "${UNAME_RV}" STREQUAL "0") |
---|
25 | |
---|
26 | # check wheter we are on a tardis machine |
---|
27 | IF ("${UNAME_OV}" MATCHES "tardis") |
---|
28 | SET (IS_TARDIS ON) |
---|
29 | ENDIF ("${UNAME_OV}" MATCHES "tardis") |
---|
30 | |
---|
31 | ENDIF (UNIX) |
---|
32 | |
---|
33 | MARK_AS_ADVANCED(IS_TARDIS) |
---|
34 | |
---|
35 | IF (IS_TARDIS) |
---|
36 | MESSAGE(STATUS "Running on D-ITET isg.ee Tardis Computer. Using customized paths.") |
---|
37 | SET(CMAKE_C_COMPILER "gcc-4.2.2") |
---|
38 | SET(CMAKE_CXX_COMPILER "g++-4.2.2") |
---|
39 | #SET(BOOST_ROOT "/usr/pack/boost-1.36.0-sd/i686-debian-linux4.0") |
---|
40 | SET(BOOST_INCLUDEDIR "/usr/pack/boost-1.36.0-sd/include/boost-1_36/boost") |
---|
41 | SET(BOOST_LIBRARYDIR "/usr/pack/boost-1.36.0-sd/i686-debian-linux4.0/lib") |
---|
42 | SET(ENV{LUA_DIR} "/usr/pack/lua-5.0.3-sd;/usr/pack/lua-5.0.3-sd/i686-debian-linux3.1") |
---|
43 | ENDIF (IS_TARDIS) |
---|
Note: See
TracBrowser
for help on using the repository browser.