Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2695


Ignore:
Timestamp:
Feb 23, 2009, 10:07:27 PM (15 years ago)
Author:
rgrieder
Message:

Minor adjustments. No actual change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/CMakeLists.txt

    r2694 r2695  
    1818 #
    1919 
     20CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
     21
     22# Keep devs from using the root directory as binary directory (messes up the source tree)
     23IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
     24  MESSAGE(FATAL_ERROR "Please do not use the root directory as CMake output directory!
     25  mkdir build; cd build; cmake ..
     26  And you will have to clean the source directory by deleting CMakeCache.txt and the folder CMakeFiles")
     27ENDIF()
     28
     29
    2030PROJECT(Orxonox C CXX)
    21 
    22 CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
    2331
    2432SET(ORXONOX_VERSION_MAJOR 0)
     
    2836SET(ORXONOX_VERSION_NAME "Castor")
    2937
    30 # Keep devs from using the root directory as binary directory (messes up the source tree)
    31 IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
    32   MESSAGE(FATAL_ERROR "Please do not use the root directory as CMake output directory!
    33   mkdir build; cd build; cmake ..
    34   And you will have to clean the source directory by deleting CMakeCache.txt and the folder CMakeFiles")
    35 ENDIF()
    3638
    3739# This sets where to look for modules (e.g. "Find*.cmake" files)
Note: See TracChangeset for help on using the changeset viewer.