On 05/02/2013 11:07 AM, Stephen Kelly wrote: > How do you generate a file only once with non-config-dependent content in a > simple case? > > file(GENERATE > OUTPUT "the_output.txt" > CONTENT "The content" > CONDITION 1 > ) > > That will be generated N times in multi-config generators, and once for > single-config, right? Currently in my branch it is an error to cause one > file name to be used to generate content twice.
Make it an error if different *content* will be written to the same file name by different configurations. Generate for all configs into per-config temp files. Then identify all files that map to a single name according to the OUTPUT genex and make sure they are the same. -Brad -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
