[cmake-developers] Setting additional compile flags to .hlsl files?

Robert Goulet Robert.Goulet at autodesk.com
Mon Jan 26 14:28:37 EST 2015


Here's a patch for adding additional compile flags to .hlsl files in Visual Studio. For this I simply added the new VS_SHADER_FLAGS source file property and basically did the same as other VS_SHADER_* properties. Tested in my project and it works. Please consider merging in master.

-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com] 
Sent: Monday, January 26, 2015 1:23 PM
To: Robert Goulet
Cc: cmake-developers at cmake.org
Subject: Re: [cmake-developers] Setting additional compile flags to .hlsl files?

On 01/26/2015 01:10 PM, Robert Goulet wrote:
> I might just go and add the COMPILE_FLAGS into the custom logic.

Okay.  Look at the OutputSourceSpecificFlags logic as a reference.

-Brad

-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_vs_shader_flags_property.patch
Type: application/octet-stream
Size: 1890 bytes
Desc: add_vs_shader_flags_property.patch
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150126/77a6a222/attachment-0001.obj>


More information about the cmake-developers mailing list