At 12:26 PM 7/13/2006, Neumann, Jan (SCR US) wrote: >Content-class: urn:content-classes:message >Content-Type: multipart/alternative; > boundary="----_=_NextPart_001_01C6A699.1464CF54" > >Hi, > >I have used CMake 2.2.3 for over a year with my projects and never had a >problem. Today I upgraded to 2.4.2, and the project files were generated fine >for Visual Studio 2003 .NET, but during compilation I am getting very strange >compilation errors where the compiler complains that the binary .ico files in >/res directory have unknown characters. > >e.g.: > >Compiling... > >VehicleDetectAppDoc.ico > >\home\SRC\PedestrianDetection\PedDetectVDO\res\VehicleDetectAppDoc.ico(0) : >warning C4821: Unable to determine Unicode encoding type, please save the file >with signature (BOM) > >\home\SRC\PedestrianDetection\PedDetectVDO\res\VehicleDetectAppDoc.ico(1) : >error C2018: unknown character '0x1' > >\home\SRC\PedestrianDetection\PedDetectVDO\res\VehicleDetectAppDoc.ico(1) : >error C2018: unknown character '0x2' > > >I assume this come from the fact that I simply include all the resource files >(both binary and text files) > as input to the ADD_EXECUTABLE(...) command. This always worked fine in > 2.2.3, but it seems that there are some settings that 2.4.2 generates that > make the compiler assume that all the resource files are text files. I > included a copy of my CMake file below > >Could someone tell me what is the correct way to include the resource files in >my project via cmake, so that I am able to use 2.4.2. in the future? > >Thanks a lot,
I think this is a bug, and I think it might be fixed. Is there a way for you to try CVS CMake? -Bill _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
