diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-05-09 21:47:37 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-06-04 21:42:37 (GMT) |
commit | db839bec7d076b54c5e9ad0d19386a26557a509e (patch) | |
tree | a9ad4797209348cc105d19e01eacf5c25ddff8bf /Modules/CMakeGenericSystem.cmake | |
parent | 8778357898327c1e4893d8dc140fc0e63331e36b (diff) | |
download | CMake-db839bec7d076b54c5e9ad0d19386a26557a509e.zip CMake-db839bec7d076b54c5e9ad0d19386a26557a509e.tar.gz CMake-db839bec7d076b54c5e9ad0d19386a26557a509e.tar.bz2 |
Make the CMAKE_EXPORT_COMPILE_COMMANDS option work with Ninja.
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r-- | Modules/CMakeGenericSystem.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake index c733969..0ccbfac 100644 --- a/Modules/CMakeGenericSystem.cmake +++ b/Modules/CMakeGenericSystem.cmake @@ -60,6 +60,12 @@ IF(CMAKE_GENERATOR MATCHES "Makefiles") ENDIF(CMAKE_GENERATOR MATCHES "Unix Makefiles") ENDIF(CMAKE_GENERATOR MATCHES "Makefiles") +IF(CMAKE_GENERATOR MATCHES "Ninja") + SET(CMAKE_EXPORT_COMPILE_COMMANDS OFF CACHE BOOL + "Enable/Disable output of compile commands during generation." + ) + MARK_AS_ADVANCED(CMAKE_EXPORT_COMPILE_COMMANDS) +ENDIF(CMAKE_GENERATOR MATCHES "Ninja") # GetDefaultWindowsPrefixBase # |