[cmake-developers] command line argument shortcuts

Alexander Neundorf neundorf at kde.org
Sat Sep 16 17:29:34 EDT 2006


Hi,

there was talk about adding support for configurable command line arguments to 
cmake.
You know, so that one can say "--prefix" maps to CMAKE_INSTALL_PREFIX and 
"--with-tests" maps to "ENABLE_TESTS" or whatever somebody might want.
Is somebody working on this ?
Otherwise I might give it a try.

How about:
-if a file ${CMAKE_SOURCE_DIR}/CMakeShortcuts.cmake" exists, load it
-with contents something like this:
SET(--prefix "-DCMAKE_INSTALL_PREFIX:STRING")
SET(--with-tests "-DENABLE_TESTS:BOOL")

Then if cmake detects an unknown command line option, it could just check if 
there is a replacement defined and use this instead.
Comments ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net



More information about the cmake-developers mailing list