Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2682


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

Trying to get around in-source build left overs.

File:
1 edited

Legend:

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

    r2664 r2682  
    1818 #
    1919 
     20# Keep devs from using the root directory as binary directory (messes up the source tree)
     21IF(${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 ..")
     23ENDIF()
     24
    2025PROJECT(Orxonox C CXX)
    2126
     
    2732SET(ORXONOX_VERSION 0.0.3)
    2833SET(ORXONOX_VERSION_NAME "Castor")
    29 
    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 "Do not use the root directory as CMake output directory! mkdir build; cd build; cmake ..")
    33 ENDIF()
    3434
    3535# This sets where to look for modules (e.g. "Find*.cmake" files)
Note: See TracChangeset for help on using the changeset viewer.