[CMake] I can't compile with nmake using cmake version 2.3-20060314

Brad King brad.king at kitware.com
Tue Mar 14 10:56:15 EST 2006


Filipe Sousa wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Brad King wrote:
> 
>>Filipe Sousa wrote:
>>
>>>QtCanvas\CMakeFiles\QtCanvas.dir\c:\devel\PndK\QtCanvas\qtcanvas.obj: QtCanvas\CMakeFiles\QtCanvas.dir\flags.make
>>>QtCanvas\CMakeFiles\QtCanvas.dir\c:\devel\PndK\QtCanvas\qtcanvas.obj: ..\..\devel\PndK\QtCanvas\qtcanvas.cpp
>>
>>Okay, I've committed a fix to avoid this error in general but I'd like 
>>to make sure there is not another bug that exposed this one.  Where is 
>>the CMakeLists.txt file that added the qtcanvas.cpp source file to a 
>>target (full path on your disk)?  Was the file added as a full path or 
>>with just a name?
> 
> Just a name. I'm sending the CMakeLists for this structure:
[snip]
> PROJECT(QtCanvas)
> 
> SET(QT_CANVAS_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "QtCanvas include directory")
> SET(QT_CANVAS_LIB QtCanvas CACHE STRING "QtCanvasLibrary")
> MARK_AS_ADVANCED(QT_CANVAS_INCLUDE_DIR QT_CANVAS_LIB)
> 
> SET(QT_CONFIG GUI)
> QT_ADD_LIBRARY(QtCanvas STATIC qtcanvas.h qtcanvas.cpp)

Please try updating CMake again and send me the new build.make it 
generates for QtCanvas.

Thanks,
-Brad


More information about the CMake mailing list