Robert Goulet
2015-01-26 17:20:24 UTC
Hi all,
Any reasons why setting additional compile flags on .hlsl files would not work?
I tried this:
set_source_files_properties(${SHADER_FILE} PROPERTIES COMPILE_FLAGS "/I${CMAKE_SOURCE_DIR}/src")
...and it didn't get written to the .vcxproj file at all. In this specific case, I want to add include directories when I build this .hlsl shader. Is it correct to assume that it should have passed the additional flag to this file? Or maybe there's another way to do this? Thanks.
Robert Goulet
Senior Software Developer
Games Solutions Group
Autodesk Media & Entertainment
MAIN +1 514 393 1616
DIRECT +1 514 954 3911
MOBILE +1 438 397 4075
Autodesk, Inc.
10 Rue Duke
Montreal, QC, H3C 2L7
www.autodesk.com<http://www.autodesk.com/>
[Description: Email_Signature_Logobar]
Any reasons why setting additional compile flags on .hlsl files would not work?
I tried this:
set_source_files_properties(${SHADER_FILE} PROPERTIES COMPILE_FLAGS "/I${CMAKE_SOURCE_DIR}/src")
...and it didn't get written to the .vcxproj file at all. In this specific case, I want to add include directories when I build this .hlsl shader. Is it correct to assume that it should have passed the additional flag to this file? Or maybe there's another way to do this? Thanks.
Robert Goulet
Senior Software Developer
Games Solutions Group
Autodesk Media & Entertainment
MAIN +1 514 393 1616
DIRECT +1 514 954 3911
MOBILE +1 438 397 4075
Autodesk, Inc.
10 Rue Duke
Montreal, QC, H3C 2L7
www.autodesk.com<http://www.autodesk.com/>
[Description: Email_Signature_Logobar]