diff options
author | Manuel Klimek <klimek@google.com> | 2011-04-25 17:16:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-05-16 14:42:10 (GMT) |
commit | 8346a28a0a6587382a30d06a998ae83caa574f4b (patch) | |
tree | 2420195b95df0d2691b830585ccdbd0b9153de1e /Modules/CMakeGenericSystem.cmake | |
parent | 0e6b05fcba61a1b113b841dd2b3e1e5060866d0e (diff) | |
download | CMake-8346a28a0a6587382a30d06a998ae83caa574f4b.zip CMake-8346a28a0a6587382a30d06a998ae83caa574f4b.tar.gz CMake-8346a28a0a6587382a30d06a998ae83caa574f4b.tar.bz2 |
Only offer the compile command output feature on unix systems
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r-- | Modules/CMakeGenericSystem.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake index e64d0ba..6615849 100644 --- a/Modules/CMakeGenericSystem.cmake +++ b/Modules/CMakeGenericSystem.cmake @@ -50,9 +50,12 @@ IF(CMAKE_GENERATOR MATCHES "Makefiles") IF(DEFINED CMAKE_RULE_MESSAGES) SET_PROPERTY(GLOBAL PROPERTY RULE_MESSAGES ${CMAKE_RULE_MESSAGES}) ENDIF(DEFINED CMAKE_RULE_MESSAGES) - SET(CMAKE_EXPORT_COMPILE_COMMANDS OFF CACHE BOOL - "Enable/Disable output of compile commands during generation." - ) + IF(CMAKE_GENERATOR MATCHES "Unix Makefiles") + 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 "Unix Makefiles") ENDIF(CMAKE_GENERATOR MATCHES "Makefiles") |