Re: [CMake] Skipping PATH when using find_library

2010-03-11 Thread Mika . Rajala
More reading documentation and attempts... but still not working. Maybe there is no way? mika.raj...@patri a.fi

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Andreas Pakulat
On 11.03.10 09:56:35, mika.raj...@patria.fi wrote: Hi The problem: From a shared CMakeLists.txt i get the following error when defining a library target. Policy CMP0002 is not set: Logival target names must be globally unique. The situation: Let's assume i have the following

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Mika . Rajala
cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: On 11.03.10 09:56:35, mika.raj...@patria.fi wrote: Hi The problem: From a shared CMakeLists.txt i get the following error when defining a library target. Policy CMP0002 is not set: Logival target names must be globally

Re: [CMake] Static Modules

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 8:56 , Markus Raab wrote: Hi! Ryan Pavlik wrote: get_target_properties() with the property SOURCES then for each value you get back there, do a get_source_file_properties() for LOCATION and add all such locations to a new list, then create a target with that source

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: On 11.03.10 09:56:35, mika.raj...@patria.fi wrote: Hi The problem: From a shared CMakeLists.txt i get the following error when defining a library target. Policy

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Mika . Rajala
cmake-boun...@cmake.org wrote on 11.03.2010 10:37:47: On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: On 11.03.10 09:56:35, mika.raj...@patria.fi wrote: Hi The problem: From a shared CMakeLists.txt i get the

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 9:41 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010 10:37:47: On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: On 11.03.10 09:56:35, mika.raj...@patria.fi wrote:

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Mika . Rajala
cmake-boun...@cmake.org wrote on 11.03.2010 10:56:42: On 11. Mar, 2010, at 9:41 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010 10:37:47: On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: cmake-boun...@cmake.org wrote on 11.03.2010

[CMake] set proxy with cmake file download

2010-03-11 Thread nader.akh...@laposte.net
Hi, is it possible to set proxy to use before downloading with cmake? file(DOWNLOAD url file [TIMEOUT timeout] [STATUS status] [LOG log]) Nad Message du 11/03/10 10:28 De : cmake-requ...@cmake.org A : cmake@cmake.org Copie à : Objet : CMake Digest, Vol 71, Issue 49 Send CMake mailing

Re: [CMake] 2 questions :)

2010-03-11 Thread Matt McCormick
add_subdirectory (/mylib/src /mylib/bin) I'm surprised this works, but for good practice, I would leave out the first slash since it usually used to indicate an absolute path, i.e. mylib/src instead of /mylib/src. Everything works like a charm, but when I add a dependency

[CMake] CPack NSIS documentation issue

2010-03-11 Thread Christoph Höger
Hi all, as you might know, CPack does support CPACK_NSIS_EXTRA_INSTALL_COMMANDS, what I found out is the following: 1. You cannot simply add !include directives here (I wanted to use the EnvVarUpdate function) 2. You need to escape your string twice, because it goes through two steps of cmake

Re: [CMake] CPack NSIS documentation issue

2010-03-11 Thread Christoph Höger
Oh, and I forgot to mention: 4. CPACK_NSIS_MODIFIY_PATH honors the bin/ layout, but is documented to set the PATH to the program directory. Is this some kind of fixed terminus in cmake? signature.asc Description: Dies ist ein digital signierter Nachrichtenteil

Re: [CMake] 2 questions :)

2010-03-11 Thread Benoit Thomas
Hi, Thanks for the answer, I'll use target_link_libraries for my dependency problem. For the multiple add_library, someone else had the same problem (and explain it better than I did), and his solution also worked for me :) Ben. On 2010-03-11 09:42, Matt McCormick wrote:

Re: [CMake] Static Modules

2010-03-11 Thread Alexander Neundorf
On Thursday 11 March 2010, Markus Raab wrote: Alexander Neundorf wrote: We don't have that anymore, we just compile all the files directly into one library. But only in the dynamic way? Hmm, we don't really have a lot of static libs in KDE... We didn't have any issues with this since

Re: [CMake] 2 questions :)

2010-03-11 Thread Alexander Neundorf
On Wednesday 10 March 2010, Benoit Thomas wrote: Hello, I have 3 projects, one library and 2 executables. Both executables depends on the library. The library is legacy stuff, and I don't need to fully convert it to cmake so the cmakelists. txt looks something like this: add_library(mylib

[CMake] How to export headers

2010-03-11 Thread Michael Surette
I am installing a library with the following code export(TARGETS mylib APPEND FILE mylibConfig.cmake ) install(TARGETS mylib EXPORT mylib-install DESTINATION ${PREFIX_LIB} ) where mylib has been previously been added as a library. I am also installing a directory of headers as follows

Re: [CMake] set proxy with cmake file download

2010-03-11 Thread Philip Lowman
Have you tried setting the http_proxy environment variable? export http_proxy=http://host:port; On Thu, Mar 11, 2010 at 7:47 AM, nader.akh...@laposte.net nader.akh...@laposte.net wrote: Hi, is it possible to set proxy to use before downloading with cmake? file(DOWNLOAD url file [TIMEOUT

[CMake] MIDL quoting patch

2010-03-11 Thread Tony Bridges
I found the attached patch posted online (sorry, I don't recall the author's name). It corrects the problem with incorrect quoting of the CMAKE_INTDIR variable passed to the MIDL compiler. Would it be possible to incorporate this in the next binary distro ? Is there a more defined process

Re: [CMake] How to export headers

2010-03-11 Thread Michael Wild
On 12. Mar, 2010, at 24:25 , Michael Surette wrote: I am installing a library with the following code export(TARGETS mylib APPEND FILE mylibConfig.cmake ) install(TARGETS mylib EXPORT mylib-install DESTINATION ${PREFIX_LIB} ) where mylib has been previously been added as a

Re: [CMake] set proxy with cmake file download

2010-03-11 Thread AKHRES Nader
I'm using windows... maybe it works on linux, I'll have a try but I would need a way to make it works on windows as well Le 12/03/2010 03:48, Philip Lowman a écrit : Have you tried setting the http_proxy environment variable? export http_proxy=http://host:port; On Thu, Mar 11, 2010 at 7:47