> -------- Original-Nachricht -------- > Datum: Mon, 12 Jun 2006 03:00:54 -0700 > Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> > An: cmake <[email protected]> > Betreff: Re: [CMake] output a string instead of a list > > Peter Kümmel wrote: > > > > I had recently a similar problem, until I found this solution: > > > > SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Zi -wd4996 > -wd4800") > > > > The point was to enclose ALSO the ${CMAKE_CXX_FLAGS_DEBUG} into the two > quotes. > > > >> Hope this is a better hint. > > Peter > > > > 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. Alex -- "Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
