diff options
author | Francesco Bertolaccini <francesco@bertolaccini.dev> | 2021-03-02 11:27:47 (GMT) |
---|---|---|
committer | Francesco Bertolaccini <francesco@bertolaccini.dev> | 2021-03-02 11:27:47 (GMT) |
commit | 48e74ec1e6d90a97a6d4ffd435c0135150f58602 (patch) | |
tree | 44e9e8458a238b4509d1cc99d99887ee7f8f44f3 /Modules | |
parent | fcf16e9459044cc78db724998b7e69849b27b748 (diff) | |
download | CMake-48e74ec1e6d90a97a6d4ffd435c0135150f58602.zip CMake-48e74ec1e6d90a97a6d4ffd435c0135150f58602.tar.gz CMake-48e74ec1e6d90a97a6d4ffd435c0135150f58602.tar.bz2 |
ASM_NASM: generate depfiles for other makefiles
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeASM_NASMInformation.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/CMakeASM_NASMInformation.cmake b/Modules/CMakeASM_NASMInformation.cmake index f84ad55..27b93ec 100644 --- a/Modules/CMakeASM_NASMInformation.cmake +++ b/Modules/CMakeASM_NASMInformation.cmake @@ -40,6 +40,13 @@ endif() set(CMAKE_DEPFILE_FLAGS_ASM_NASM "-MD <DEP_FILE> -MT <DEP_TARGET>") +if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER) + AND CMAKE_GENERATOR MATCHES "Makefiles|WMake") + # dependencies are computed by the compiler itself + set(CMAKE_ASM_NASM_DEPFILE_FORMAT gcc) + set(CMAKE_ASM_NASM_DEPENDS_USE_COMPILER TRUE) +endif() + # Load the generic ASMInformation file: set(ASM_DIALECT "_NASM") include(CMakeASMInformation) |