Re: [CMake] acyclic subdirectory builds

2008-04-04 Thread Egon Kocjan
PROTECTED] On Behalf Of Egon Kocjan Sent: Donnerstag, 3. April 2008 23:49 To: cmake@cmake.org Subject: [CMake] acyclic subdirectory builds Hello again, I am slowly porting a complicated project to cmake. I have an acyclic graph of dependencies and shared build directories and I have trouble

Re: [CMake] acyclic subdirectory builds

2008-04-04 Thread Egon Kocjan
Hi, I have a complicated situation :). I avoided the kind of approach, that you suggest because it's not modular - main project file contains add_subdirectory commands, which have to be maintained by hand - you can see the non-modular information leak here: add_subdirectory( liba ). The

Re: [CMake] acyclic subdirectory builds

2008-04-03 Thread Egon Kocjan
I used cmake 2.4.8 Egon Kocjan wrote: Hello again, I am slowly porting a complicated project to cmake. I have an acyclic graph of dependencies and shared build directories and I have trouble generating VS slns. A simple example (the real build is way more complicated): liba/include.cmake

[CMake] acyclic subdirectory builds

2008-04-03 Thread Egon Kocjan
} EndProjectSection EndProject As you can see, the dependencies are correct, but liba is generated twice. Visual studio complains about duplicates, but it seems to work ok regardless. Is this a bug? Am I breaking some unwritten rules here? What about other generators, like xcode, ... thanks Egon Kocjan

Re: [CMake] per target flags

2008-03-17 Thread Egon Kocjan
On Mon, 2008-03-17 at 02:21 +0100, Pau Garcia i Quiles wrote: Quoting Egon Kocjan [EMAIL PROTECTED]: Are/will-be there per target commands for adding include directories and preproc. defines? SET_DIRECTORY_PROPERTIES SET_SOURCE_FILES_PROPERTIES SET_TARGET_PROPERTIES You may also