[CMake] Generated .rc files silently ignored

Jakob van Bethlehem jsvanbethlehem at gmail.com
Sun Sep 13 06:13:50 EDT 2015


Hej,

Some more information about how you setup things would be useful. For instance: you would need to add the filename of the generated .rc file to the executable/library for which it is generated: are you doing that?

In the application I currently work on, we have created a small function to wrap the generation of the .rc file. I just checked that we actually also build a full path. That actually makes sense, because the generated file is put in the ${CMAKE_CURRENT_BINARY_DIR} and *not* in the current source dir. In other words: we could never accomplish this with any type of ‘relative’ path anyway. Are you maybe also mixing up the *SOURCE_DIR and *BINARY_DIR?

Sincerely,
Jakob

> On 07 Sep 2015, at 13:08, Mueller-Roemer, Johannes Sebastian <Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote:
> 
> While adding versioning info to a  .dll I noticed that .rc files that are generated (via configure_file) are silently being ignored. Adding them via an absolute path works, but using a relative leads to it being ignored.
>  
> Is this a bug or is this by design? At the very least just silently ignoring it seems wrong.
>  
> --
> Johannes S. Mueller-Roemer, MSc
> Wiss. Mitarbeiter - Interactive Engineering Technologies (IET)
>  
> Fraunhofer-Institut für Graphische Datenverarbeitung IGD
> Fraunhoferstr. 5  |  64283 Darmstadt  |  Germany
> Tel +49 6151 155-606  |  Fax +49 6151 155-139
> johannes.mueller-roemer at igd.fraunhofer.de <mailto:johannes.mueller-roemer at igd.fraunhofer.de>  |  www.igd.fraunhofer.de <http://www.igd.fraunhofer.de/>
>  
> -- 
> 
> Powered by www.kitware.com <http://www.kitware.com/>
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ <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 <http://cmake.org/cmake/help/support.html>
> CMake Consulting: http://cmake.org/cmake/help/consulting.html <http://cmake.org/cmake/help/consulting.html>
> CMake Training Courses: http://cmake.org/cmake/help/training.html <http://cmake.org/cmake/help/training.html>
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html <http://www.kitware.com/opensource/opensource.html>
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake <http://public.kitware.com/mailman/listinfo/cmake>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150913/4572862f/attachment-0001.html>


More information about the CMake mailing list