[CMake] Regenerating project files based on external file.

2011-08-01 Thread The Novice Coder
The short version of what I'm trying to do: Add some kind of definition to the cmake file that specifies a file, that if modified, will cause the project to be regenerated. Longer (more specific) version. We (our small program team) want's to use cmake to generate a file svn_version.h,

[CMake] Windows build inconsistency...

2011-06-02 Thread The Novice Coder
I've noticed an inconsistency in CMake's generation.. For example I go through the following sequence: cd \Project mkdir Debug cd Debug Then I either: cmake -G Visual Studio 9 2008 -DCMAKE_BUILD_TYPE=Debug ..\CMakeLists.txt It will generate, and then place the project files in \Project.

[CMake] Compile flags for a single file

2011-04-18 Thread The Novice Coder
I've been trying most things I can think of, but have been unable to come up with a solution.. the basic gist is I need to change the compile flags for a SINGLE file within a project. Specifically, disabling all compile warnings for that file. add_definitions() seems to effect the whole

Re: [CMake] Compile flags for a single file

2011-04-18 Thread The Novice Coder
On Mon, 18 Apr 2011 21:52:31 +0200, Alexander Neundorf wrote: On Monday 18 April 2011, The Novice Coder wrote: I've been trying most things I can think of, but have been unable to come up with a solution.. the basic gist is I need to change the compile flags for a SINGLE file within