Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brad King
CMake
Commits
a11d1c61
Commit
a11d1c61
authored
Mar 26, 2014
by
Brad King
Committed by
Kitware Robot
Mar 26, 2014
Browse files
Merge topic 'dev/custom-ninja-deptypes'
9523d2a5
ninja: Add support for custom depfile formats
parents
f04e217c
9523d2a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Help/release/dev/custom-ninja-deptypes.rst
0 → 100644
View file @
a11d1c61
custom-ninja-deptypes
---------------------
* Add a `CMAKE_NINJA_DEPTYPE_<LANG>` variable so that compilers may set the
deptype for use in Ninja other than those CMake itself knows about.
Source/cmNinjaTargetGenerator.cxx
View file @
a11d1c61
...
...
@@ -418,6 +418,11 @@ cmNinjaTargetGenerator
else
{
deptype
=
"gcc"
;
const
char
*
langdeptype
=
mf
->
GetDefinition
(
"CMAKE_NINJA_DEPTYPE_"
+
lang
);
if
(
langdeptype
)
{
deptype
=
langdeptype
;
}
depfile
=
"$DEP_FILE"
;
const
std
::
string
flagsName
=
"CMAKE_DEPFILE_FLAGS_"
+
lang
;
std
::
string
depfileFlags
=
mf
->
GetSafeDefinition
(
flagsName
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment