diff options
author | Brad King <brad.king@kitware.com> | 2013-11-05 13:16:42 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-11-05 13:16:42 (GMT) |
commit | 7ccb8fafdb8982818e55d6f8c57b882af444c52f (patch) | |
tree | c9b7a61d59767b9fb5439a3de9c964279b27b6cf /Modules | |
parent | 47694c40e34bb7ee3e4edbeeeb264189f5e4d4d0 (diff) | |
parent | d43908328759a0b724c49309d0e8dc8d857b2eaf (diff) | |
download | CMake-7ccb8fafdb8982818e55d6f8c57b882af444c52f.zip CMake-7ccb8fafdb8982818e55d6f8c57b882af444c52f.tar.gz CMake-7ccb8fafdb8982818e55d6f8c57b882af444c52f.tar.bz2 |
Merge topic 'ninja-deps-intel'
d439083 Ninja: add depfile support for Intel's compiler
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/Intel-C.cmake | 2 | ||||
-rw-r--r-- | Modules/Compiler/Intel-CXX.cmake | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/Intel-C.cmake b/Modules/Compiler/Intel-C.cmake index 5b43db9..7d98f03 100644 --- a/Modules/Compiler/Intel-C.cmake +++ b/Modules/Compiler/Intel-C.cmake @@ -6,6 +6,8 @@ set(CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") set(CMAKE_C_FLAGS_RELEASE_INIT "-O3 -DNDEBUG") set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -g -DNDEBUG") +set(CMAKE_DEPFILE_FLAGS_C "-MMD -MT <OBJECT> -MF <DEPFILE>") + if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.0) set(CMAKE_C_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") endif() diff --git a/Modules/Compiler/Intel-CXX.cmake b/Modules/Compiler/Intel-CXX.cmake index 35bb3ec..36a838d 100644 --- a/Modules/Compiler/Intel-CXX.cmake +++ b/Modules/Compiler/Intel-CXX.cmake @@ -6,6 +6,8 @@ set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g -DNDEBUG") +set(CMAKE_DEPFILE_FLAGS_CXX "-MMD -MT <OBJECT> -MF <DEPFILE>") + if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0) set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") endif() |