Re: [CMake] working around rc.exe too many -I# options
Whoops, forgot to follow up on this. On Tue, Oct 20, 2009 at 03:27:50PM -0400, David Cole wrote: One easy way to hack around this problem would be to use add_custom_command to invoke the rc.exe directly... Not sure if you could just include a *.res file (output from rc) as a source in an add_library or add_executable call, though. This strategy does work. Adding the generated .res file to the list of sources handed to add_executable/add_library results in proper version info baked into the .exe/.dll. Thanks for the hint, David! tyler I am trying to add Windows versioning information to my project. I am using CMake 2.6.2 and VS2005. I have crafted a version.rc file which I use with all my libraries and executables. This is working well except for one library which has 94 include directories, one greater than the 93 directory limit (lol) imposed by rc.exe, the Windows resource compiler. Thus, I am running into this issue: http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/97be1e3a-82ec-430d-a260-d75ea173b62e ___ 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
[CMake] working around rc.exe too many -I# options
I am trying to add Windows versioning information to my project. I am using CMake 2.6.2 and VS2005. I have crafted a version.rc file which I use with all my libraries and executables. This is working well except for one library which has 94 include directories, one greater than the 93 directory limit (lol) imposed by rc.exe, the Windows resource compiler. Thus, I am running into this issue: http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/97be1e3a-82ec-430d-a260-d75ea173b62e Yes, the library probably could/should be refactored to get rid of this excessive number of include dirs, but that's not how it is today and I would prefer not to change it at this time. Has anyone hacked around this problem? One thing that might work would be to alter the include directories used by the version.rc file (it obviously doesn't need all those headers; it just needs to be able to find and #include the two version-related headers). Unfortunately, the INCLUDE_DIRECTORIES property is only available at the directory level so I don't see a way to say, all these .cpp files use these include dirs; this .rc file uses these other include dirs. TIA, tyler ___ 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
Re: [CMake] working around rc.exe too many -I# options
I am trying to add Windows versioning information to my project. I am using CMake 2.6.2 and VS2005. I have crafted a version.rc file which I use with all my libraries and executables. This is working well except for one library which has 94 include directories, one greater than the 93 directory limit (lol) imposed by rc.exe, the Windows resource compiler. Thus, I am running into this issue: http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/97be1e3a-82ec-430d-a260-d75ea173b62e Yes, the library probably could/should be refactored to get rid of this excessive number of include dirs, but that's not how it is today and I would prefer not to change it at this time. Has anyone hacked around this problem? I have this in my main project. No, I have not found a good solution. I should have reported this months ago. Since I was busy at the time I just disabled the .rc and I have no icon.. John M. Drescher ___ 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
Re: [CMake] working around rc.exe too many -I# options
One easy way to hack around this problem would be to use add_custom_command to invoke the rc.exe directly... Not sure if you could just include a *.res file (output from rc) as a source in an add_library or add_executable call, though. Worth a shot On Tue, Oct 20, 2009 at 3:20 PM, John Drescher dresche...@gmail.com wrote: I am trying to add Windows versioning information to my project. I am using CMake 2.6.2 and VS2005. I have crafted a version.rc file which I use with all my libraries and executables. This is working well except for one library which has 94 include directories, one greater than the 93 directory limit (lol) imposed by rc.exe, the Windows resource compiler. Thus, I am running into this issue: http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/97be1e3a-82ec-430d-a260-d75ea173b62e Yes, the library probably could/should be refactored to get rid of this excessive number of include dirs, but that's not how it is today and I would prefer not to change it at this time. Has anyone hacked around this problem? I have this in my main project. No, I have not found a good solution. I should have reported this months ago. Since I was busy at the time I just disabled the .rc and I have no icon.. John M. Drescher ___ 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 ___ 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