[CMake] visual studio 2010 warning message

J Decker d3ck0r at gmail.com
Fri Oct 1 21:09:00 EDT 2010


with cmake version 2.8.2.20100929-ge15e0
bad warning?

warning: The variable, 'CMAKE_C_STANDARD_LIBRARIES', given on the
command line, was not used within the build.



On a simple project with a single library,
-----
cmake_minimum_required(VERSION 2.8 )
project( test1 )
add_library( test SHARED test.c )
-----
and a blank test.c file for grins...


cmake -G "Visual Studio 10" .. --trace >err 2>&1

gives the warning twice.  This is a exerpt of the log around said
warning... probably doesn't help

e:/tools/unix/cmake/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake(28):
 IF(DEFINED CMAKE_${lang}_VERBOSE_FLAG )
e:/tools/unix/cmake/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake(31):
 TRY_COMPILE(CMAKE_DETERMINE_${lang}_ABI_COMPILED ${CMAKE_BINARY_DIR}
${src} CMAKE_FLAGS ${CMAKE_FLAGS} -DCMAKE_${lang}_STANDARD_LIBRARIES=
--no-warn-unused-cli OUTPUT_VARIABLE OUTPUT COPY_FILE ${BIN} )
warning: The variable, 'CMAKE_C_STANDARD_LIBRARIES', given on the
command line, was not used within the build.
e:/tools/unix/cmake/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake(44):
 IF(CMAKE_DETERMINE_${lang}_ABI_COMPILED )


More information about the CMake mailing list