diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-04-06 21:25:09 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-04-06 21:35:50 (GMT) |
commit | f93e81858b5e1243714ed7f26aadfc791a7b0ff0 (patch) | |
tree | 34596c20407a2d3c680fa14cf86c4b8ea437da6a /Source/CMakeLists.txt | |
parent | 73426ac774ab7f74ed6ef3339f075bcebb5336eb (diff) | |
download | CMake-f93e81858b5e1243714ed7f26aadfc791a7b0ff0.zip CMake-f93e81858b5e1243714ed7f26aadfc791a7b0ff0.tar.gz CMake-f93e81858b5e1243714ed7f26aadfc791a7b0ff0.tar.bz2 |
Ninja: add option to enable ninja where it is not enabled by default
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index f9d1c03..a27ec75 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -355,15 +355,17 @@ IF (WIN32) ENDIF(NOT UNIX) ENDIF (WIN32) -# turn on Ninja by default +# Turn on Ninja by default, but disable it +# on platforms where it does not pass all tests. +# Enforce Ninja support with ENABLE_NINJA set(_CMAKE_DEFAULT_NINJA_VALUE TRUE) -# turn it off for platforms where it does not pass all the -# tests if(WIN32 OR APPLE) - SET(_CMAKE_DEFAULT_NINJA_VALUE FALSE) + if(NOT ENABLE_NINJA) + SET(_CMAKE_DEFAULT_NINJA_VALUE FALSE) + endif() endif() SET(CMAKE_ENABLE_NINJA ${_CMAKE_DEFAULT_NINJA_VALUE} CACHE BOOL - "Enable the ninja generator for CMake. currently not fully working for Windows or OSX") + "Enable the ninja generator for CMake. On Windows and OSX broken" FORCE) MARK_AS_ADVANCED(CMAKE_ENABLE_NINJA) IF(CMAKE_ENABLE_NINJA) MESSAGE(STATUS "Enable ninja generator.") @@ -382,7 +384,7 @@ IF(CMAKE_ENABLE_NINJA) ) ADD_DEFINITIONS(-DCMAKE_USE_NINJA) ELSE() - MESSAGE(STATUS "Disable ninja generator.") + MESSAGE(STATUS "Ninja generator disabled, enforce with -DENABLE_NINJA=ON") ENDIF() # create a library used by the command line and the GUI |