[cmake-developers] [PATCH for bug 15253] Ninja: Pass only the flags relevant to the language.
Brad King
brad.king at kitware.com
Thu Jan 29 11:43:50 EST 2015
On 01/29/2015 03:12 AM, Brian Smith wrote:
> I don't see how to make CMake execute yasm -M -o <x>.obj <x>.asm > $DEP_FILE
> and then execute yasm -o <x>.obj <x>.asm to do the actual assembly.
The CMAKE_<LANG>_COMPILE_OBJECT value can be set to a list of multiple
strings. Each will be invoked in order. I haven't tested this though.
Also it would have to be set up in a generator-specific manner for Ninja.
> But, when I execute ninja and it executes the rule, it never provides
> a value for $DEP_FILE. Instead, the executed command looks like this:
Please try out this commit:
Ninja: Use "deps = msvc" only for C and CXX
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2596f95e
Then rebase your changes on it.
Thanks,
-Brad
More information about the cmake-developers
mailing list