[CMake] Using cmake under windows

Arjen Markus arjen.markus at wldelft.nl
Mon Aug 28 10:04:10 EDT 2006


Yann Renard wrote:

>
>>>
>>> however, when calling 'cmake .' in my directory (even in the sample 
>>> directory provided by cmake documentation), the linker complains not 
>>> finding 'user32.lib'. This library is present in the 
>>> 'd:yrenard\platform-sdk\lib' directory. The error happens before 
>>> cmake does anything on the project, it happens on the testing phase 
>>> while cmake checks the compilator (cmTryCompileExec)...
>>>

>
> typing 'set' at the windows prompt reports the variables to be set 
> correctly.
>
Well, that at least is one thing.

What happens if you try to compile a small file by typing the compile
cmmand used by TRY_COMPILE into a DOS box?
Something like:

cl.exe -o tst.obj -c tst.c

Or alternatively, could you post the error output from the TRY_COMPILE
command as found in the error log file?

Regards,

Arjen


More information about the CMake mailing list