[CMake] passing arguments to "cmake -P"

Abe Stephens abe at sci.utah.edu
Thu Jan 25 16:52:03 EST 2007


Is there a way to pass command line arguments into variables when using 
"cmake -P"?

I tried "cmake -P foo.cmake -D var=value" but that didn't work. I could 
do it using configure file, but that seems overly complicated.

Thanks-
Abe



More information about the CMake mailing list