diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-02-19 10:10:18 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-02-19 10:10:18 (GMT) |
commit | 895914881be32f862dee638a0a86313366f9b7b4 (patch) | |
tree | c41d67c3eb06139f41dcacdfae3ed830de962480 | |
parent | 70c39c845f2f2909413d8bcb19a6b72e19ff83c4 (diff) | |
download | CMake-895914881be32f862dee638a0a86313366f9b7b4.zip CMake-895914881be32f862dee638a0a86313366f9b7b4.tar.gz CMake-895914881be32f862dee638a0a86313366f9b7b4.tar.bz2 |
Ninja: also build ninja support on Windows
-rw-r--r-- | Source/CMakeLists.txt | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 7ddabbd..e0a6f42 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -353,23 +353,20 @@ IF (WIN32) ENDIF(NOT UNIX) ENDIF (WIN32) -# Ninja only works on UNIX. -IF(UNIX) - SET(SRCS ${SRCS} - cmGlobalNinjaGenerator.cxx - cmGlobalNinjaGenerator.h - cmNinjaTypes.h - cmLocalNinjaGenerator.cxx - cmLocalNinjaGenerator.h - cmNinjaTargetGenerator.cxx - cmNinjaTargetGenerator.h - cmNinjaNormalTargetGenerator.cxx - cmNinjaNormalTargetGenerator.h - cmNinjaUtilityTargetGenerator.cxx - cmNinjaUtilityTargetGenerator.h - ) - ADD_DEFINITIONS(-DCMAKE_USE_NINJA) -ENDIF(UNIX) +SET(SRCS ${SRCS} + cmGlobalNinjaGenerator.cxx + cmGlobalNinjaGenerator.h + cmNinjaTypes.h + cmLocalNinjaGenerator.cxx + cmLocalNinjaGenerator.h + cmNinjaTargetGenerator.cxx + cmNinjaTargetGenerator.h + cmNinjaNormalTargetGenerator.cxx + cmNinjaNormalTargetGenerator.h + cmNinjaUtilityTargetGenerator.cxx + cmNinjaUtilityTargetGenerator.h + ) +ADD_DEFINITIONS(-DCMAKE_USE_NINJA) # create a library used by the command line and the GUI ADD_LIBRARY(CMakeLib ${SRCS}) |