[CMake] CMake 2.8.3 with VC2010 - CHECK_FUNCTION_EXISTS failed

Dongsheng Song dongsheng.song at gmail.com
Tue Jan 25 09:14:26 EST 2011


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 compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1600
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check for working C compiler: E:/usr/vs2010/VC/bin/cl.exe
-- Check for working C compiler: E:/usr/vs2010/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: E:/usr/vs2010/VC/bin/cl.exe
-- Check for working CXX compiler: E:/usr/vs2010/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for log
-- Looking for log - not found
-- Looking for exp
-- Looking for exp - not found
-- Configuring done
-- Generating done
-- Build files have been written to: E:/var



More information about the CMake mailing list