[CMake] building cmake with special options
Brad King
brad.king at kitware.com
Fri Mar 25 11:33:14 EST 2005
Doug Henry wrote:
> I need to specify my ncurses include/lib path when building cmake. I
> didn't see a way to do this using the config script, so I tried -D's
> during bootstrap (make) and it complained that -D was an invalid
> option. Is there a way for me to override the CURSES_INCLUDE_PATH and
> CURSES_LIBRARY when building cmake?
If you run "bootstrap --help" you will see an option called "--init="
that lets you specify a file containing CMake code to initialize
variables. Point it at a file containing
SET(CURSES_INCLUDE_PATH "/my/path" CACHE PATH "")
SET(CURSES_LIBRARY "/my/libncruses.a" CACHE PATH "")
-Brad
More information about the CMake
mailing list