> 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.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to