Create custom "make help"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Create custom "make help"

DKLind
This post was updated on .
Is there a way to create a custom help that is displayed with "make help"?

I have tried to implement this using the instructions in this thread: http://cmake.3232098.n2.nabble.com/How-to-list-user-definable-CMake-variables-td5578249.html

add_custom_target(HelpMe
  COMMAND  ${CMAKE_COMMAND}
-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR} --help-module HelpMe
  COMMENT "Display User defined help")

When I run "make HelpMe" I get the following error: Argument "HelpMe" to --help-module is not a CMake module.