From d67962c55a4be2653d40b27c4f5fc38fc5c223b0 Mon Sep 17 00:00:00 2001 From: Ephi Sinowitz Date: Thu, 12 Apr 2018 15:44:42 -0400 Subject: SunPro,XL: Add depfile flags to support Ninja generator Add CMAKE_DEPFILE_FLAGS_${lang} to SunPro and XL. These flags are used by the Ninja generator. --- Modules/Compiler/SunPro-CXX.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Modules/Compiler/SunPro-CXX.cmake') diff --git a/Modules/Compiler/SunPro-CXX.cmake b/Modules/Compiler/SunPro-CXX.cmake index 5cb7edcede..14196b71dc 100644 --- a/Modules/Compiler/SunPro-CXX.cmake +++ b/Modules/Compiler/SunPro-CXX.cmake @@ -18,6 +18,8 @@ string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG") string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG") string(APPEND CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG") +set(CMAKE_DEPFILE_FLAGS_CXX "-xMD -xMF ") + # Initialize C link type selection flags. These flags are used when # building a shared library, shared module, or executable that links # to other libraries to select whether to use the static or shared -- cgit v1.2.1