Re: [CMake] Re: Help getting -l and -L arguments from apr-config

2007-05-07 Thread Thomas Christian Chust
Bill Hoffman wrote: > [...] > I think you are going to have to use regular expressions. > [...] Hello, if you want some code that can correctly identify matching quotation marks, regular expressions don't have enough expressive power to describe that behaviour (you would need something like PEGs

Re: [CMake] Re: Help getting -l and -L arguments from apr-config

2007-05-04 Thread Thomas Christian Chust
Matthew Woehlke wrote: > [...] So I think I still have the same problem, how to take a string > that might look like '-lfoo -lbar -L"foo bar/thelib"' and split it > into '-lfoo', '-lbar' and '-L"foo bar/thelib". From there I can use > STRING to strip the flag and SET/LIST to build the needed varia

Re: [CMake] lib dependencies

2007-04-27 Thread Thomas Christian Chust
Hendrik Sattler wrote: > [...] > Windows needs the indirect dependencies, same as MacOS X, AFAIK. > [...] Hello, I'm not so sure about the precise architecture on Windows and Linux, but the MacOS X linker *does not* require indirect dependencies to be mentioned explicitly when creating an execut

Re: [CMake] SET_TARGET_PROPERTIES LINK_FLAGS not working

2007-04-13 Thread Thomas Christian Chust
Teodor Calin Hanchevici wrote: > Alan, this does not work either, > LINK_FLAGS "/nodefaultlib:LIBCMT.lib;/nodefaultlib:MSVCRT.lib" > it always picks the first one > [...] Hello, the LINK_FLAGS property has to be set to a simple space separated string just like it is supposed to appear on the li

Re: [CMake] TARGET_LINK_LIBRARIES question

2007-04-12 Thread Thomas Christian Chust
Bill Hoffman wrote: > [...] > -search_paths_first > [...] > If you add that to LDFLAGS before you run cmake it should fix the > problem. At one point, > I thought we made this a default flag in CMake. I guess it never got > commited, what > do you mac folks think, should this be a default fla

Re: [CMake] TARGET_LINK_LIBRARIES question

2007-04-11 Thread Thomas Christian Chust
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > >> [...] >> When I TARGET_LINK_LIBRARIES( test /path/to/libA.lib) I get the equivalent >> of -L /path/to -l libA.lib. I'd like to get -l /path/to/libA.lib. Is >> that possible? > > Currently this is not possible. You also shouldn't need it.

Re: [CMake] CMAKE_CXX_COMPILER-NOTFOUND

2007-03-31 Thread Thomas Christian Chust
Manfred Rebentisch wrote: > [...] > on my Debian-Backup-Server I dont need g++ but only gcc. How can I avoid the > following error: > > -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. > > Please set

[CMake] Unable to link to static libraries on MacOS X

2007-02-25 Thread Thomas Christian Chust
Hello, part of the issues I had with creating and linking to libraries on MacOS X have been resolved with help from this list. But the most important problem remains. I'm using CMake 2.4.6 on a PowerPC iBook running MacOS X 10.4.8 and I can't get CMake to link against a static library if a dynami

Re: [CMake] Re: Trouble with libraries on MacOS X

2007-02-25 Thread Thomas Christian Chust
Brandon J. Van Every wrote: > [...] > I just checked the file doc/cmake-2.4/cmake.html in > http://www.cmake.org/files/v2.4/cmake-2.4.6-Darwin-universal.tar.gz > and it correctly documents CLEAN_DIRECT_OUTPUT. > [...] I used the .dmg based installer instead of the tarball you examined. Although I

Re: [CMake] Re: Trouble with libraries on MacOS X

2007-02-24 Thread Thomas Christian Chust
Brandon J. Van Every wrote: > [...] > This capability was added relatively recently, maybe in CMake 2.4.5. > What version of CMake are you using? > [...] Hello, as I said in my original mail, I'm running the most recent release available for download, which is CMake 2.4.6 at the moment. I trie

Re: [CMake] Re: Trouble with libraries on MacOS X

2007-02-23 Thread Thomas Christian Chust
Brandon J. Van Every wrote: > Thomas Christian Chust wrote: > >> I consider this seriously buggy behaviour. First of all I don't like it >> that the build system magically wipes out one of the library targets I >> ordered it to create. > > [...] T

[CMake] Trouble with libraries on MacOS X

2007-02-23 Thread Thomas Christian Chust
Hello, I'm using CMake 2.4.6 on a PowerPC iBook running MacOS X 10.4.8 and I found some issues with building both shared and static libraries and with linking to static libraries using CMake. I have attached a very simple example project to this e-mail that can be used to demonstrate the problems