Re: [CMake] Analyze file dependencies in Visual Studio for projectgeneratedbyCMake

2009-04-23 Thread Martin Apel
Alexander Neundorf wrote: > On Thursday 23 April 2009, Martin Apel wrote: > >> Alexander Neundorf wrote: >> >>> On Wednesday 22 April 2009, Martin Apel wrote: >>> Hi all, I am currently fighting with Visual Studio regenerating a CMake-generated project on every bu

Re: [CMake] "COMPILE_DEFINITIONS"

2009-04-23 Thread Jared Oberhaus
My interpretation of the question was the simplest thing to think of, which is just to provide a list of symbols that you want defined in a target, as in: set_target_properties(MyDll PROPERTIES COMPILE_DEFINITIONS _USRDLL,UNICODE) It appears to be as simple as separating the symbols with

Re: [CMake] Analyze file dependencies in Visual Studio for projectgeneratedby CMake

2009-04-23 Thread Alexander Neundorf
On Thursday 23 April 2009, Martin Apel wrote: > Alexander Neundorf wrote: > > On Wednesday 22 April 2009, Martin Apel wrote: > >> Hi all, > >> > >> I am currently fighting with Visual Studio regenerating a > >> CMake-generated project on every build, although nothing has changed. I > >> am searchin

[CMake] display default build type

2009-04-23 Thread David Doria
If in my CMakeLists.txt file I have: PROJECT(CMakeDemo) set(CMAKE_BUILD_TYPE DEBUG) ADD_EXECUTABLE(CMakeDemo cmakedemo.cpp) when I run ccmake on the directory and press 'c' to configure, the CMAKE_BUILD_TYPE field is still empty. Have I not set it properly? Or do you have to turn on "show default

[CMake] What does IMPLICIT_DEPENDS in add_custom_command actually do?

2009-04-23 Thread James Bigler
What does IMPLICIT_DEPENDS in add_custom_command actually do? Why is it only available to Makefile generators? Thanks, James ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Re: [CMake] Fwd: Generated file dependency

2009-04-23 Thread James Bigler
On Thu, Apr 23, 2009 at 9:39 AM, James Bigler wrote: > On Thu, Apr 23, 2009 at 6:50 AM, Nikolay Mitev wrote: > >> [posting to the list, since I accidentally replied only to Sergey] >> On Thu, Apr 23, 2009 at 1:48 PM, Sergey Rudchenko < >> sergey.rudche...@gmail.com> wrote: >> >>> On Thu, 2009-04-

Re: [CMake] Fwd: Generated file dependency

2009-04-23 Thread James Bigler
On Thu, Apr 23, 2009 at 6:50 AM, Nikolay Mitev wrote: > [posting to the list, since I accidentally replied only to Sergey] > On Thu, Apr 23, 2009 at 1:48 PM, Sergey Rudchenko < > sergey.rudche...@gmail.com> wrote: > >> On Thu, 2009-04-23 at 13:37 +0300, Nikolay Mitev wrote: >> > Hi >> > >> > I ha

Re: [CMake] how to get the version of a library

2009-04-23 Thread Ralf Habacker
brice rebsamen schrieb: How to know the version of an installed library? My code has #if macros to handle different APIs. So I would need to get the version and set 2 variables (MAJOR and MINOR) and pass them to the compiler (-D). To be more precise, I am interested in Player/Stage. One way to

Re: [CMake] Help cmake to resolve link lines with multiple circular dependencies?

2009-04-23 Thread Hendrik Sattler
Zitat von alexandre.feb...@thomsonreuters.com: Using target_link_libraries(), I set that: - exe depends on lib1 - lib1 depends on lib2, lib3 - lib2 depends on lib3 - lib3 depends on lib2 And the generated link line is : lib1 lib2 lib3 lib1 lib2 lib3. Of cours

Re: [CMake] Help cmake to resolve link lines with multiple circulardependencies?

2009-04-23 Thread Alexandre.Feblot
Eric, in fact we build static libraries. And we currently use a custom build system with a "handmade" link line. Alexandre -Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Thursday, 23 April 2009 15:04 To: Feblot, Alexandre (M Risk) Cc: cmake@cmake.org Subject

Re: [CMake] Help cmake to resolve link lines with multiple circular dependencies?

2009-04-23 Thread Eric Noulard
2009/4/23 : > I have some code with multiple circular dependencies. I rely on the > transitive dependency mechanism to create the link line. Following is a > short example of libs which can't be resolved properly. > > รจ My question is: if there a way to help cmake create a working link line. > [..

[CMake] Help cmake to resolve link lines with multiple circular dependencies?

2009-04-23 Thread Alexandre.Feblot
Hi, I have some code with multiple circular dependencies. I rely on the transitive dependency mechanism to create the link line. Following is a short example of libs which can't be resolved properly. ==> My question is: if there a way to help cmake create a working link line. In the exampl

[CMake] Fwd: Generated file dependency

2009-04-23 Thread Nikolay Mitev
[posting to the list, since I accidentally replied only to Sergey] On Thu, Apr 23, 2009 at 1:48 PM, Sergey Rudchenko < sergey.rudche...@gmail.com> wrote: > On Thu, 2009-04-23 at 13:37 +0300, Nikolay Mitev wrote: > > Hi > > > > I have the following situation: > > > > files: test.cpp test.h > > > >

Re: [CMake] Generated file dependency

2009-04-23 Thread Sergey Rudchenko
On Thu, 2009-04-23 at 13:37 +0300, Nikolay Mitev wrote: > Hi > > I have the following situation: > > files: test.cpp test.h > > I want to process the file test.cpp with a custom pre-processor which > will generate, say, test.ii.cpp which will get compiled into > libtest.a. test.cpp just includes

[CMake] Generated file dependency

2009-04-23 Thread Nikolay Mitev
Hi I have the following situation: files: test.cpp test.h I want to process the file test.cpp with a custom pre-processor which will generate, say, test.ii.cpp which will get compiled into libtest.a. test.cpp just includes test.h. This is my CMakeLists.txt file: cmake_minimum_required(VERSION

Re: [CMake] Analyze file dependencies in Visual Studio for projectgeneratedby CMake

2009-04-23 Thread Martin Apel
Alexander Neundorf wrote: > On Wednesday 22 April 2009, Martin Apel wrote: > >> Hi all, >> >> I am currently fighting with Visual Studio regenerating a >> CMake-generated project on every build, although nothing has changed. I >> am searching for a method how to debug the generated dependencies