<div dir="ltr"><div class="gmail-adn gmail-ads"><div class="gmail-gs"><div class="gmail-"><div id="gmail-:1ch" class="gmail-ii gmail-gt"><div id="gmail-:1ci" class="gmail-a3s gmail-aXjCH" tabindex="-1"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to add this compiler-specific G++ option to CXXFLAGS:</div><div><br></div><div>    -frandom-seed=$(shell sha256sum $< | awk '{print $$1}')</div><div><br></div><div>This option obviously needs to be parsed by GNU Make before G++ can use it, and so I am doing the following:</div><div><br></div><div>    add_compile_options(SHELL:"-frandom-seed=$(shell sha256sum $< | awk '{print $$1}')")</div><div><br></div><div>However, CMake is turning this option into nonsense like:<br></div><div><br></div><div>    CXXFLAGS = -g "-frandom-seed=\$$(shell sha256sum \$$< | awk '{print \$$\$$1}')"</div><div><br></div><div>Is
 there any way that I can turn this accursed "escaping" OFF please? All I
 need is for CMake to write the given command verbatim!</div><div><br></div><div>Thanks for any help here,</div><div>Cheers,</div><div>Chris</div><div><br></div><div>P.S.
 This is for a large build with lots and lots of subdirectories, and so 
adding this option to CXXFLAGS would be by far the simplest solution - 
despite what CMake seems to think.</div><div class="gmail-m_-338682754653701278gmail-adL gmail-adL"><br></div></div></div></div></div></div><div class="gmail-adL">
</div></div></div></div></div></div><div class="gmail-gA gmail-gt gmail-acV"><div class="gmail-gB gmail-xu"><div class="gmail-ip gmail-iq"><div id="gmail-:1cg"><table class="gmail-cf gmail-wS"><tbody><tr><td class="gmail-amq"><br></td></tr></tbody></table></div></div></div></div></div>