On Feb 12, 2008 11:25 AM, Nicolas Tisserand <[EMAIL PROTECTED]> wrote: > > According to: > http://www.cmake.org/Wiki/index.php?title=CMake_FAQ#How_can_I_get_quoting_and_escapes_to_work_properly.3F
Yeah, my lousy stub of a FAQ entry. Well, I've filed bug http://cmake.org/Bug/view.php?id=6295 "Document core syntax in a chapter format." I suggested the idea of reusing info from the current edition of "Mastering CMake," but that suggestion has not been favorably received. > I first tried to be creative and played around various levels of > quoting, before or after the "Use*.cmake" file configurations, without > success. > I also tried the ESCAPE_QUOTES option of the CONFIGURE_FILE function. > No luck either. > > I now need some world class CMake guru wisdom... > Any thoughts? I hypothesize that when configure_file is performed, the single backslashes that escape the whitespace are lost. "\ " turns into " ". If you were to string(REPLACE "\\" "\\\\" out "${in}") for all your paths before performing the configure_file, I think you would solve the problem. Cheers, Brandon Van Every _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake