Changeset 42 for code/branches/tutorial/Tutorial
- Timestamp:
- Oct 11, 2007, 7:37:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/Tutorial/CMakeLists.txt
r41 r42 1 1 PROJECT(Tutorial) 2 2 3 SET(CMAKE_CXX_COMPILER CC="gcc-3.4.3 gcc-4.1.2 gcc" CXX="g++-3.4.3 g++-4.1.2 g++") 3 #force-set the compile on tardis machines, as default points to g++-3.3 4 IF (UNIX) 5 FIND_PROGRAM(UNAME_CMD "uname" 6 PATHS "/usr/bin /bin") 7 EXECUTE_PROCESS( 8 COMMAND "${UNAME_CMD}" "-n" 9 RESULT_VARIABLE UNAME_RV 10 ERROR_VARIABLE UNAME_EV 11 OUTPUT_VARIABLE UNAME_OV) 12 #MESSAGE("Print: UNAME_RV ${UNAME_RV}") 13 IF (NOT "${UNAME_RV}" STREQUAL "0") 14 MESSAGE("ERROR: Unable to find uname. System cannot be marked as 15 Tardis if needed.") 16 ENDIF (NOT "${UNAME_RV}" STREQUAL "0") 17 #STRING(REGEX MATCH "tardis" UNAME_OV "${UNAME_OV}") 18 IF ("${UNAME_OV}" MATCHES "tardis") 19 SET (IS_TARDIS "tardis") 20 ENDIF ("${UNAME_OV}" MATCHES "tardis") 21 #MESSAGE("Print: UNAME_OV ${UNAME_OV}") 22 IF (IS_TARDIS) 23 MESSAGE("System is a TARDIS: Setting Compiler to g++-3.4.3") 24 SET(CMAKE_CXX_COMPILER "g++-3.4.3") 25 ENDIF(IS_TARDIS) 26 ENDIF (UNIX) 4 27 5 28 SET(SRC_FILES src/main.cpp)
Note: See TracChangeset
for help on using the changeset viewer.