[CMake] passing arguments to "cmake -P"

David Cole david.cole at kitware.com
Thu Jan 25 16:53:15 EST 2007


Put the -D args *before* the -P -- it'll work like you expect then...

:-)
David

On 1/25/07, Abe Stephens <abe at sci.utah.edu> wrote:
>
> 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
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070125/f452465a/attachment.htm


More information about the CMake mailing list