Michael Wild <them...@gmail.com> writes: >> This is quoting hell. Back to configure_file. > > What's wrong with my solution? Doesn't even require a custom command...
It is more complex than configure_file, although it has the advantage of not requiring a .in file to configure. As this code is suppossed to be understandable by people with very slim knowledge about cmake, the simplest solution wins. On that sense the add_custom_command was best, because when they see "echo" and the redirection to the file they immediately guess what's going on. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake