<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Hello,</div><div><br></div><div>I'm trying to use the cmake feature for testing if compiler flags are valid, but I am running into trouble with these two complier flags. &nbsp;I can not figure out how to proper escape the "+" or the "%" that I believe are causing the failures.</div><div><br></div><div>cat CMakeLists.txt&nbsp;</div><div><div>============================================</div><div>project(TestCompilerFlagTest)</div><div><br></div><div>include(CheckCCompilerFlag)</div><div>include(CheckCXXCompilerFlag)</div><div><br></div><div>set(flag -Wno-c++0x-static-nonintegral-init)</div><div>check_cxx_compiler_flag(${flag} CXX_HAS_WARNING${flag})</div><div>set(flag -features=no%anachronisms )</div><div>check_cxx_compiler_flag(${flag} CXX_HAS_WARNING${flag})</div></div><div>============================================</div><div><br></div><div>I'd appreciate any help in resolving this.</div><div><br></div><div>A more robust version of&nbsp;&nbsp;/opt/cmake-2.8.4-Darwin-universal/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/CheckCXXCompilerFlag.cmake</div><div>&nbsp;for use in ITK (and Slicer/SimpleITK/BRAINS) would also be acceptable.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Hans</div><div><br></div></body></html>