No subject


Fri Jan 14 08:05:08 EST 2011


...
Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.obj

    E:\usr\vs2010\VC\bin\cl.exe
@C:\DOCUME~1\DONGSH~1\LOCALS~1\Temp\nm506.tmp

cl : Command line warning D9025 : overriding '/MD' with '/MDd'

cl : Command line warning D9025 : overriding '/O2' with '/Od'

CheckFunctionExists.c

E:\usr\CMake-2.8\share\cmake-2.8\Modules\CheckFunctionExists.c(21) : fatal
error C1189: #error :  "CHECK_FUNCTION_EXISTS has to specify the function"
...

But I can success compile and link with the following command line:

E:\var>cl /DCHECK_FUNCTION_EXISTS=log
E:\usr\CMake-2.8\share\cmake-2.8\Modules\CheckFunctionExists.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for
80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

CheckFunctionExists.c
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:CheckFunctionExists.exe
CheckFunctionExists.obj



More information about the CMake mailing list