Alexander Neundorf wrote:
Von: "Brandon J. Van Every" <[EMAIL PROTECTED]>
Bah. I finally found the problem. All of my string handling was
correct. I was passing arguments to a CMake script using
INCLUDE(${CMAKE_CURRENT_BINARY_DIR}/vars.cmake) because there are no
command line arguments for scripts in CMake 2.4.2.
You mean cmake -P myscript.cmake -DSOMEVAR=foo ?
This works, it is the same as when you use -D when calling cmake to configure your project. It should really work.
I use it this way and the only issues I had were with spaces in the arguments, i.e. they have to be escaped properly.
Last I read the archives, and last I checked it on the command line,
this doesn't work in 2.4.2. You sure you're not using a CVS CMake?
Cheers,
Brandon Van Every
|
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake