Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-10 Thread Sylvain Benner
If it is something not being built by cmake, then a full path should be used, and cmake should do the right thing. LINK_DIRECTORIES should be used as a last resort. If the library does not exist at cmake run time, because it will be built by the cmake project, then it should work. If the

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Ben Ratzlaff
On 10/9/07, David Cole <[EMAIL PROTECTED]> wrote: > > The problem (from a CMake perspective) is how to go about giving > override control of that setting to CMakeLists.txt files / developers > using CMake. If anybody has a reasonable suggestion of how to achieve > this in a non-Xcode-centric way (i

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread David Cole
On 10/9/07, Mike Jackson <[EMAIL PROTECTED]> wrote: > I think this is more of an Xcode issue than a Cmake issue. Xcode by > default will have 2 types of "Configurations", Debug and Release. > Xcode _will_ make the subdirectories (just like VS) named after the > configuration. This is hard coded int

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Mike Jackson
On Oct 9, 2007, at 12:27 PM, Sylvain Benner wrote: This has to be this way, or the cmake generated projects will not be able to find libraries in other projects of the same build type. Can someone explain the issue with this? We are using this for VTK and several other larger project

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Bill Hoffman
Sylvain Benner wrote: This has to be this way, or the cmake generated projects will not be able to find libraries in other projects of the same build type. Can someone explain the issue with this? We are using this for VTK and several other larger projects, and it works fine. -Bill Ok I

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Sylvain Benner
This has to be this way, or the cmake generated projects will not be able to find libraries in other projects of the same build type. Can someone explain the issue with this? We are using this for VTK and several other larger projects, and it works fine. -Bill Ok I understand but library

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Bill Hoffman
Sylvain Benner wrote: I then generate Xcode projects, but they give me a warning that /path/to/Debug (or /path/to/Release) doesn't exist in the linker flag -L/path/to/{Debug,Release} (and fail because there are alongside libraries being pulled it). Apparently, cmake added the linker flag -L/pat

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Sylvain Benner
I then generate Xcode projects, but they give me a warning that /path/to/Debug (or /path/to/Release) doesn't exist in the linker flag -L/path/to/{Debug,Release} (and fail because there are alongside libraries being pulled it). Apparently, cmake added the linker flag -L/path/to/Debug with the abo

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Joshua Jensen
KSpam wrote: This was an annoyance I had with Visual Studio as well, and I was able to work around it fairly easily. I have CMAKE_CONFIGURATION_TYPES set when I am building in Visual Studio. I expect that this would be similar for Xcode. All I do is prepend "../" to the output name, and I se

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread KSpam
This was an annoyance I had with Visual Studio as well, and I was able to work around it fairly easily. I have CMAKE_CONFIGURATION_TYPES set when I am building in Visual Studio. I expect that this would be similar for Xcode. All I do is prepend "../" to the output name, and I set the OUTPUT_N

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Mike Jackson
In my experience, it is Xcode that is adding the Debug or Release additions to your path. I think there is something in the project settings where you can tell it where to put the built binaries. Of course that will be wiped out next time you change anything in the CMake files as cmake will

[CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-08 Thread Nico Galoppo
Hi, I add required libraries to my project with TARGET_LINK_LIBRARIES(target /path/to/library) I then generate Xcode projects, but they give me a warning that /path/to/Debug (or /path/to/Release) doesn't exist in the linker flag -L/path/to/{Debug,Release} (and fail because there are alongside li