[CMake-Promote] a ./configure shell script stub
William A. Hoffman
billlist at nycap.rr.com
Sun May 28 21:24:29 EDT 2006
At 07:43 PM 5/28/2006, Brandon J. Van Every wrote:
>>That is where it gets hard, because cmake has to be
>>run before you can figure out what the options are. That is why I suggested creating
>>an options file. It is not perfect because it could get out of date with the true
>>options for the project. But, it would give people a way to document a project and
>>have a better command line.
>>
>>cmake --help ../path/to/source
>>This would read CMakeCommandLineOptions.cmake, and print out the options found in the
>>file.
>>
>
>What is the motive for making it separate from CMakeLists.txt?
Because you have to parse the entire CMakeLists.txt tree, create a CMakeCache
before you could implement --help. And, even then, there is currently no way
to map a cmake variable like CMAKE_INSTALL_PREFIX to some command line option
like --prefix.
-Bill
More information about the CMake-Promote
mailing list