diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-06 12:01:02 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-06 12:01:02 (GMT) |
commit | 7ef5255e1efdcbf48a62a3711b9f75ea69671c6e (patch) | |
tree | 0139c61888f13444e584329c9d91ddef6c26549c /Modules/Compiler | |
parent | 1df8c88ea2d93c7dd41c759dc8eb30a42f8c0ef9 (diff) | |
download | CMake-7ef5255e1efdcbf48a62a3711b9f75ea69671c6e.zip CMake-7ef5255e1efdcbf48a62a3711b9f75ea69671c6e.tar.gz CMake-7ef5255e1efdcbf48a62a3711b9f75ea69671c6e.tar.bz2 |
armclang: activate compiler dependencies generation
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/ARMClang-C.cmake | 8 | ||||
-rw-r--r-- | Modules/Compiler/ARMClang-CXX.cmake | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Modules/Compiler/ARMClang-C.cmake b/Modules/Compiler/ARMClang-C.cmake index 0a64a8a..01c4cea 100644 --- a/Modules/Compiler/ARMClang-C.cmake +++ b/Modules/Compiler/ARMClang-C.cmake @@ -2,6 +2,14 @@ include(Compiler/Clang-C) include(Compiler/ARMClang) __compiler_armclang(C) +if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER) + AND CMAKE_GENERATOR MATCHES "Makefiles|WMake" + AND CMAKE_DEPFILE_FLAGS_C) + # dependencies are computed by the compiler itself + set(CMAKE_C_DEPFILE_FORMAT gcc) + set(CMAKE_C_DEPENDS_USE_COMPILER TRUE) +endif() + set(CMAKE_C90_STANDARD_COMPILE_OPTION "-std=c90") set(CMAKE_C90_EXTENSION_COMPILE_OPTION "-std=gnu90") set(CMAKE_C90_STANDARD__HAS_FULL_SUPPORT ON) diff --git a/Modules/Compiler/ARMClang-CXX.cmake b/Modules/Compiler/ARMClang-CXX.cmake index 5dfb401..045b783 100644 --- a/Modules/Compiler/ARMClang-CXX.cmake +++ b/Modules/Compiler/ARMClang-CXX.cmake @@ -1,3 +1,11 @@ include(Compiler/Clang-CXX) include(Compiler/ARMClang) __compiler_armclang(CXX) + +if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER) + AND CMAKE_GENERATOR MATCHES "Makefiles|WMake" + AND CMAKE_DEPFILE_FLAGS_CXX) + # dependencies are computed by the compiler itself + set(CMAKE_CXX_DEPFILE_FORMAT gcc) + set(CMAKE_CXX_DEPENDS_USE_COMPILER TRUE) +endif() |