[CMake] Fwd: New warnings in CMake 2.8.4-rc2

Emmanuel Blot eblot.ml at gmail.com
Tue Feb 22 15:45:53 EST 2011


> echo -e 'IF (NOT CMAKE_VERSION VERSION_LESS 2.8.4)\nMESSAGE(STATUS
> --no-warn-unused-cli)\nENDIF (NOT CMAKE_VERSION VERSION_LESS 2.8.4)" >>
> cmake_since_2.8.4.cmake
>
> EXTRA_CMAKE_ARGS=$(cmake -P cmake_since_2.8.4 | sed 's/^-- //')
>
> HTH
>
> Eike

Thanks, Eike.

As I already test the CMake version to warn the user about issues tied
to specific CMake versions in a script, I've added the following code
to it:

   CMK_CLIWARN=`${CMAKE} --help | grep "no-warn-unused-cli"`
   if [ -n "${CMK_CLIWARN}" ]; then
       CMAKEOPT="${CMAKEOPT} --no-warn-unused-cli"
   fi

Cheers,
Manu.


More information about the CMake mailing list