Thanks, I known the reason why cmke can not found the crt functions:
When I set CFLAGS with double quotation marks:
SET CFLAGS=/nologo /W3 /EHsc /O2 /Oy- /Zi /D"_WIN32_WINNT=0x0502"
/D"WIN32_LEAN_AND_MEAN=1"
Then cmake can issued invalid command lines like this:
CL.EXE /nologo /nologo /W3 /EHs
On 1/25/2011 9:14 AM, Dongsheng Song wrote:
From the page
http://www.cmake.org/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more_.27verbose.27_compiling.3F
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.ex
Hi,
When I use the following CMakeLists.txt:
CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
INCLUDE(${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)
CHECK_FUNCTION_EXISTS(log HAVE_LOG)
CHECK_FUNCTION_EXISTS(exp HAVE_EXP)
E:\var>cmake -G "NMake Makefiles"
-- The C compiler identification is MSVC
-- The CXX