No subject


Fri Jan 14 08:05:08 EST 2011


but when I set CMAKE_START_TEMP_FILE and CMAKE_END_TEMP_FILE to "" ,
CMakeError.log still include such lines:

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

Then I can not check more details.

Thanks for some help.

--
Dongsheng

--00163628447eb4128b049aac56df
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>When I use the following CMakeLists.txt:<br><br>CMAKE_MINIMUM_RE=
QUIRED (VERSION 2.8)<br>INCLUDE(${CMAKE_ROOT}/Modules/CheckFunctionExists.c=
make)<br>CHECK_FUNCTION_EXISTS(log HAVE_LOG)<br>CHECK_FUNCTION_EXISTS(exp H=
AVE_EXP)<br>

<br>E:\var&gt;cmake -G &quot;NMake Makefiles&quot;<br>-- The C compiler ide=
ntification is MSVC<br>-- The CXX compiler identification is MSVC<br>-- Che=
ck for CL compiler version<br>-- Check for CL compiler version - 1600<br>

-- Check if this is a free VC compiler<br>-- Check if this is a free VC com=
piler - no<br>-- Check for working C compiler: E:/usr/vs2010/VC/bin/cl.exe<=
br>-- Check for working C compiler: E:/usr/vs2010/VC/bin/cl.exe -- works<br=
>

-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done=
<br>-- Check for working CXX compiler: E:/usr/vs2010/VC/bin/cl.exe<br>-- Ch=
eck for working CXX compiler: E:/usr/vs2010/VC/bin/cl.exe -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>-- Looking for log<br>-- Looki=
ng for log - not found<br>-- Looking for exp<br>-- Looking for exp - not fo=
und<br>-- Configuring done<br>-- Generating done<br>-- Build files have bee=
n written to: E:/var<br>

<br>From the CMakeError.log file:<br>...<br>Building C object CMakeFiles/cm=
TryCompileExec.dir/CheckFunctionExists.c.obj<br><br>=C2=A0=C2=A0=C2=A0 E:\u=
sr\vs2010\VC\bin\cl.exe=C2=A0 @C:\DOCUME~1\DONGSH~1\LOCALS~1\Temp\nm506.tmp=
<br><br>cl : Command line warning D9025 : overriding &#39;/MD&#39; with &#3=
9;/MDd&#39;<br>

<br>cl : Command line warning D9025 : overriding &#39;/O2&#39; with &#39;/O=
d&#39;<br><br>CheckFunctionExists.c<br><br>E:\usr\CMake-2.8\share\cmake-2.8=
\Modules\CheckFunctionExists.c(21) : fatal error C1189: #error :=C2=A0 &quo=
t;CHECK_FUNCTION_EXISTS has to specify the function&quot;<br>

...<br><br>But I can success compile and link with the following command li=
ne:<br><br>E:\var&gt;cl /DCHECK_FUNCTION_EXISTS=3Dlog E:\usr\CMake-2.8\shar=
e\cmake-2.8\Modules\CheckFunctionExists.c<br>Microsoft (R) 32-bit C/C++ Opt=
imizing Compiler Version 16.00.30319.01 for 80x86<br>

Copyright (C) Microsoft Corporation.=C2=A0 All rights reserved.<br><br>Chec=
kFunctionExists.c<br>Microsoft (R) Incremental Linker Version 10.00.30319.0=
1<br>Copyright (C) Microsoft Corporation.=C2=A0 All rights reserved.<br><br=
>/out:CheckFunctionExists.exe<br>

CheckFunctionExists.obj<br><br>From the page <a href=3D"http://www.cmake.or=
g/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more_.27verbose.27_compiling=
.3F">http://www.cmake.org/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more=
_.27verbose.27_compiling.3F</a><br>

<br>but when I set CMAKE_START_TEMP_FILE and CMAKE_END_TEMP_FILE to &quot;&=
quot;
,=C2=A0 CMakeError.log still include such lines:<br><br>E:\usr\vs2010\VC\bi=
n\cl.exe=C2=A0 @C:\DOCUME~1\DONGSH~1\LOCALS~1\Temp\nm506.tmp<br><br>Then I =
can not check more details.<br><br>Thanks for some help.<br><br>--<br>Dongs=
heng<br>


--00163628447eb4128b049aac56df--


More information about the CMake mailing list