Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2683


Ignore:
Timestamp:
Feb 18, 2009, 10:35:41 PM (16 years ago)
Author:
rgrieder
Message:

Change of code location wasn't successful.
Turning to the user, added better message.

File:
1 edited

Legend:

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

    r2682 r2683  
    1818 #
    1919 
    20 # Keep devs from using the root directory as binary directory (messes up the source tree)
    21 IF(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
    22   MESSAGE(FATAL_ERROR "Do not use the root directory as CMake output directory! mkdir build; cd build; cmake ..")
    23 ENDIF()
    24 
    2520PROJECT(Orxonox C CXX)
    2621
     
    3227SET(ORXONOX_VERSION 0.0.3)
    3328SET(ORXONOX_VERSION_NAME "Castor")
     29
     30# Keep devs from using the root directory as binary directory (messes up the source tree)
     31IF(${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")
     35ENDIF()
    3436
    3537# This sets where to look for modules (e.g. "Find*.cmake" files)
Note: See TracChangeset for help on using the changeset viewer.