[CMake] New warnings in CMake 2.8.4-rc2

Rolf Eike Beer eike at sf-mail.de
Sat Feb 19 05:30:54 EST 2011


> Basically, we call several CMake projects from the same shell scripts,
> and each CMake invokation receive the same set of global parameters.
> The same way you can invoke a compiler with several -D options and
> safely ignore the definitions you do not care about. Or the same way
> you can place as many variables as you want in the environment and let
> a program decides whether it "wants" to use it or not. I'm looking for
> the same feature for CMake. I used to do it with -D option switch, it
> seems I can't do it anymore.

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


More information about the CMake mailing list