> 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 _______________________________________________ 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