Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-15 Thread Alexander Neundorf
On Thursday 10 May 2007 17:25, Trevor Kellaway wrote: ... However, this has exposed a bug/issue, my list of dependencies includes some custom commands, one of which has a non-standard language extension .lint, this is causing a crash here: cmTarget.cxx line 1252 in

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-10 Thread Kishore, Jonnalagadda (IE10)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Trevor Kellaway Sent: Thursday, May 10, 2007 4:33 AM To: cmake@cmake.org Subject: RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs? Also, is there are a way of recovering

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-10 Thread Bill Hoffman
Trevor Kellaway wrote: Brandon, I'd personally like is some standard ways to get at *.obj locations ... Seconded, I also have a case where I'd like to determine the location of .obj files. I could predict this most of the time until I started pulling in source files from relative

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-10 Thread Trevor Kellaway
Kishore, Perhaps you could use GET_DIRECTORY_PROPERTY()? GET_DIRECTORY_PROPERTY(INC_LIST INCLUDE_DIRECTORIES) GET_DIRECTORY_PROPERTY(DEFS DEFINITIONS) Thanks, I don't know how I missed this one. - TrevK ___ CMake mailing list CMake@cmake.org

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-10 Thread Trevor Kellaway
Bill, I'd personally like is some standard ways to get at *.obj locations get_target_properties(foo PROPERTIES OBJECT_FILES objs) I did make an attempt at this, and it worked well for makefiles, but I had trouble with Xcode and visual studio I think... Does that mean this is

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-10 Thread Bill Hoffman
Trevor Kellaway wrote: Does that mean this is supported in the dev tree? I tried this with cmake version 2.5-20070505 but it didn't work, I also tried GET_TARGET_PROPERTY (myobj myfile.c OBJECT_FILES) What I really want to do is determine the object file for a specific source file,

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-10 Thread Trevor Kellaway
Bill, It should work like this: add_executable(foo foo.cxx) get_target_property(objs foo OBJECT_FILES) message(${objs}) Thanks, I was mistakenly calling it before the ADD_LIBRARY / ADD_EXECUTABLE. However, this has exposed a bug/issue, my list of dependencies includes some custom

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-10 Thread Kishore, Jonnalagadda (IE10)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Trevor Kellaway Sent: Friday, May 11, 2007 12:15 AM To: cmake@cmake.org Subject: RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs? Kishore, Perhaps you could use

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Brad King
Rob Mathews wrote: If I had fred.cpp in both the foo and bar directories, then foo/Debug/fred.obj and bar/Debug/fred.obj are different files, and so that works fine. Hmm ... you must be talking about support for the case where the intermediate directories are all off somewhere else?

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Rob Mathews
Cc: Bill Hoffman; cmake@cmake.org Subject: Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs? Rob Mathews wrote: If I had fred.cpp in both the foo and bar directories, then foo/Debug/fred.obj and bar/Debug/fred.obj are different files, and so that works fine. Hmm

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread David Cole
- From: Brad King [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 10:29 AM To: Rob Mathews Cc: Bill Hoffman; cmake@cmake.org Subject: Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs? Rob Mathews wrote: If I had fred.cpp in both the foo and bar directories, then foo

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Alexander Neundorf
On Wednesday 09 May 2007 10:30, Rob Mathews wrote: Nope. That's what the configurations are for, - ie, Debug, Release, RelWithDebInfo, for example. Just adding the string project.dir to the path doesn't get you anything. It does. E.g. you can use the same source file in two different targets

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Rob Mathews
King; cmake@cmake.org; Bill Hoffman Subject: Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs? It's not project.dir, it's library.dir. Brad's talking about the same source file included in two different libraries (libA and libB), not two different configurations (Debug

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Brad King
Rob Mathews wrote: Right, sorry, technically it is library.dir. Visual Studio just confuses things by calling a library a project. But my point still stands – the intermediate files in VisualStudio are already qualified by the library name, so adding another level is pointless in that case.

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Rob Mathews
] Sent: Wednesday, May 09, 2007 11:32 AM To: Rob Mathews Cc: David Cole; cmake@cmake.org; Bill Hoffman Subject: Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs? Rob Mathews wrote: Right, sorry, technically it is library.dir. Visual Studio just confuses things by calling

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Brad King
Rob Mathews wrote: Seems pretty clear that it returns project.dir and sets IntermediateDirectory to it. Thus you would get IntermediateDirectory=project.dir and since Visual Studio interpretes that relative path as relative to the project dir, you get project/project.dir/Debug

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Bill Hoffman
Brandon Van Every wrote: Anyone get the feeling that this debate would go away if the burden of proof was raised to the level of demonstrating safety under a gigantic test suite covering all weird options? If such a suite existed, then Rob could tweak CMake as he likes and then run the

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Rob Mathews
2.4.1/VC71 Why the wierd project.dir subdirs? Rob Mathews wrote: Seems pretty clear that it returns project.dir and sets IntermediateDirectory to it. Thus you would get IntermediateDirectory=project.dir and since Visual Studio interpretes that relative path as relative to the project dir, you

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Bill Hoffman
Rob Mathews wrote: Ah, ok, now that makes sense. But if you *aren't* doing that.. then you don't need this. A very simple cmake project would need that: add_library(foo foo.c) add_executable(bar bar.c) target_link_libraries(bar foo) This would create foo.vcproj and bar.vcproj in the same

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Brandon Van Every
On 5/9/07, Bill Hoffman [EMAIL PROTECTED] wrote: CMake does have a test suite that checks for most of this stuff. My guess is that if you made that change something would fail. But if it did not fail, that would not mean that it would not cause a problem, just that we did not yet create the

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Brandon Van Every
On 5/9/07, Rob Mathews [EMAIL PROTECTED] wrote: I understand your point, but the Visual Studio itself doesn't really support more than one project in one directory. Ok, you can force it via tricks like this, but that's not the beaten path for most VC developers. Whether most people do it or

RE: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-09 Thread Trevor Kellaway
Brandon, I'd personally like is some standard ways to get at *.obj locations ... Seconded, I also have a case where I'd like to determine the location of .obj files. I could predict this most of the time until I started pulling in source files from relative paths outside the CMakeLists.txt lib