[CMake] Problem with VS 7.0/7.1 generators
William A. Hoffman
billlist at nycap.rr.com
Wed Mar 16 17:00:11 EST 2005
That should work. Is it possible you changed the defaults in VS7 to treat a .rc
file like c++ to get syntax highlighting or something? If you create a project
without cmake and add an rc file does it have the same problem?
-Bill
At 04:58 PM 3/16/2005, Jorge Rodriguez wrote:
>Ack, sorry! I intended to include the version number but forgot :/ I'm using cmake 2.0.5.
>
>William A. Hoffman wrote:
>
>>What version of cmake are you using? Sounds like a bug, but cmake
>>itself adds a .rc file to the build so I am bit surprised that it does
>>not work??
>>
>>-Bill
>>
>>
>>At 03:07 PM 3/16/2005, Jorge Rodriguez wrote:
>>
>>
>>>I am converting a cross-platform library to cmake I have encountered some strange behavior from cmake's Visual Studio 7.0/7.1 generators. In the CMakeLists.txt, the .def and .rc are included in the list of sources like so:
>>>
>>>SET( BASE_SRCS ${BASE_SRCS} win32/${XN_BA_DEF} win32/${XN_BA_VER_RC} )
>>>
>>>ADD_LIBRARY(${XN_BA_DLL} SHARED ${BASE_SRCS})
>>>
>>>A project generated with the nmake generator or the 6.0 generator works fine, but when the 7.0/7.1 project files are built they emit strange errors and fail because Visual Studio is trying to compile the .def and .rc as with the C++ compiler. You can get it to build correctly by setting the .rc to compile with the resource compiler tool and excluding the .def from the build, but shouldn't cmake do this automatically? Am I doing something wrong?
>>>_______________________________________________
>>>CMake mailing list
>>>CMake at cmake.org
>>>http://www.cmake.org/mailman/listinfo/cmake
>>>
>>
>>
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list