Hello Brad, but the problem with this command is, that for multi configuration environments (e.g. Visual Studio), it requires $<CONFIG> in the filename which then creates 4 header files. One for each configuration.
Maybe I didn't understand something, but after that I also need to call configure_file to resolve the rest of the CMake variables. After the 4 header files are generated, which one should I include in the unit test for example? Do you understand the problem? Thanks Roman > Am 15.06.2015 um 15:10 schrieb Brad King <brad.k...@kitware.com>: > >> On 06/12/2015 07:19 AM, Roman Wüger wrote: >> It would be great if generator expressions can be used with >> configure_file to avoid such overhead. >> >> Does anyone have an idea on how to solve that? > > See file(GENERATE). > > -Brad > -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers