Re: [CMake] Overriding read-only project's CMakeLists.txt

2009-12-29 Thread Kenneth Porter
--On Tuesday, December 29, 2009 5:55 PM +0100 Michael Wild wrote: Have a look at the -C option which allows you to set cache variables before anything else runs. You can use that in a batch script to set up things automatically. My initial attempt at that used John's example of if(MSVC) but

[CMake] Overriding read-only project's CMakeLists.txt

2009-12-29 Thread Kenneth Porter
Where can I put build instructions that are build-host-wide, not project-wide? I'm relatively new to cmake. I want to "inject" some code before the project's own script, and I'd prefer not to modify the project (since then I'd have to maintain the patch). I want to set the CMAKE__PREFIX vari