Re: [CMake] on find_package and building dependencies

2011-12-29 Thread Eric Noulard
2011/12/29 Ryan Lewis m...@ryanlewis.net: Hi, I really like CMake's find_package() utility for finding dependencies, but for some projects I have a separate local copy of the installed libraries, and I want to point find_package at a particular directory to find the installed libraries.

Re: [CMake] on find_package and building dependencies

2011-12-29 Thread Eric Noulard
2011/12/29 Ryan Lewis m...@ryanlewis.net: Hi, your suggestion on setting that variable before a find_package() just simply _is not_ doing what I expect. I specify my own location of libz and it _always_ finds the system wide version. Then there must be something weird, did you clean-up your

[CMake] How to install then test?

2011-12-29 Thread Denis Scherbakov
Dear All! Maybe someone can help me: I have a project, we compile binaries and then using various INSTALL directives finish the job by copying files where they belong: to bin, man, libexec, etc. The point is, we need to run executables after they got installed into this tree, because otherwise

[CMake] Using ExternalProject_Add

2011-12-29 Thread Eric Noulard
2011/12/29 Ryan Lewis m...@ryanlewis.net: [...] Also I cannot get the ExternalProject_Add() module to work properly.    include(ExternalProject)    ExternalProject_Add( JPEG    PREFIX ${CURRENT_SOURCE_DIR} CURRENT_SOURCE_DIR is probably a typo: you certainly mean: CMAKE_CURRENT_SOURCE_DIR

Re: [CMake] Per-configuration include directories?

2011-12-29 Thread Kevin Burge
Thanks. I just worked around it by checking the generator for visual studio and then doing something like: include_directories (path_to_lib/$(Outdir)/include) That works at least in VS. I may have to do a similar thing with link_directories. Kevin On 12/29/2011 11:18 AM, Robert Dailey

Re: [CMake] Per-configuration include directories?

2011-12-29 Thread Robert Dailey
I was asking about this a couple of weeks ago. David Cole has expressed interest, and it seems it has been placed on the roadmap to implement this feature. However, for the time being this can't be done. There are a couple of workarounds I know of, but none of which are CMake workarounds. I've had

Re: [CMake] How to install then test?

2011-12-29 Thread Eric Noulard
2011/12/29 Denis Scherbakov denis_scherba...@yahoo.com: Dear All! Maybe someone can help me: I have a project, we compile binaries and then using various INSTALL directives finish the job by copying files where they belong: to bin, man, libexec, etc. The point is, we need to run executables

[CMake] Per-configuration include directories?

2011-12-29 Thread Kevin Burge
I'm trying to get my large project (built of many sub-projects and external projects) to build correctly in Visual Studio, allowing the user to compile release/debug from the UI. One problem I have: I'm building an external library, and I've customized ExternalProject to keep

Re: [CMake] Per-configuration include directories?

2011-12-29 Thread Robert Dailey
It won't be necessary with link_directories because you can specify absolute paths to your LIB files in target_link_libraries(). You can also specify 'debug' or 'optimized' prior to the lib. for example: target_link_libraries( myproject debug C:/project/libs/debug/zlib.lib optimized

Re: [CMake] Per-configuration include directories?

2011-12-29 Thread Kevin Burge
I used the debug and optimized just as you said. Thank you! On 12/29/2011 2:14 PM, Robert Dailey wrote: It won't be necessary with link_directories because you can specify absolute paths to your LIB files in target_link_libraries(). You can also specify 'debug' or 'optimized' prior to the

Re: [CMake] on find_package and building dependencies

2011-12-29 Thread Ryan Lewis
Thanks a bunch, Is there a way to hand this to cmake on the command line (i.e. an ExternalProject_Add), when I test on the command line with: cmake -DCMAKE_FIND_ROOT_PATH=... it gives me the warning that it is ignoring my define. -rhl On Thu, Dec 29, 2011 at 1:29 PM, Eric Noulard

[CMake] FTP client in CMake?

2011-12-29 Thread Robert Dailey
I don't think I've seen a way to use CMake to download files from an FTP server. For certain third party libraries, I'd like to store them on an FTP server and use CMAKE_COMMAND to invoke CMake.exe from within a cmake script to download the files from that FTP server. Is it possible to add this

Re: [CMake] FTP client in CMake?

2011-12-29 Thread Pau Garcia i Quiles
Hi, Doesn't file(DOWNLOAD ... ) work for you? On Fri, Dec 30, 2011 at 12:01 AM, Robert Dailey rcdai...@gmail.com wrote: I don't think I've seen a way to use CMake to download files from an FTP server. For certain third party libraries, I'd like to store them on an FTP server and use

Re: [CMake] FTP client in CMake?

2011-12-29 Thread David Cole
file(DOWNLOAD ...) works with ftp: urls. For example, the following script works for me (with CMake 2.8.6): get_filename_component(dir ${CMAKE_CURRENT_LIST_FILE} PATH) file(DOWNLOAD ftp://ftp.cs.brown.edu/pub/benchmark.ps.Z; ${dir}/benchmark.ps.Z ) I found a small file on the

Re: [CMake] FTP client in CMake?

2011-12-29 Thread norulez
You could use wget or curl to download files. Best Regards NoRulez Am 30.12.2011 um 00:01 schrieb Robert Dailey rcdai...@gmail.com: I don't think I've seen a way to use CMake to download files from an FTP server. For certain third party libraries, I'd like to store them on an FTP server

Re: [CMake] CMake 2.8.7-rc2 ready for testing!

2011-12-29 Thread David Cole
On Tue, Dec 27, 2011 at 3:34 PM, Alan W. Irwin ir...@beluga.phys.uvic.cawrote: On 2011-12-21 20:42-0500 David Cole wrote: The CMake 2.8.7 release candidate stream continues! You can find the source and binaries here:

[CMake] on find_package and building dependencies

2011-12-29 Thread Ryan Lewis
Hi, yes, this is all that I can't figure out if I type the define without a type, it fails, but I can't figure out this variables type. I tried STRING and FILEPATH and even BOOL. please advice. -rhl On Thu, Dec 29, 2011 at 5:03 PM, Ryan Lewis m...@ryanlewis.net wrote: Thanks a bunch, Is

Re: [CMake] CMake 2.8.7-rc2 ready for testing!

2011-12-29 Thread Alan W. Irwin
On 2011-12-29 18:34-0500 David Cole wrote: I've considered your plea, but after looking at the diffs between 2.8.5 and 2.8.7-rc2, I think we ought to keep what we have and continue moving forward with it. The commits involved are easily seen with these git commands: $ gitk v2.8.5..a1c9de56

Re: [CMake] CMake 2.8.7-rc2 ready for testing!

2011-12-29 Thread David Cole
On Thu, Dec 29, 2011 at 9:15 PM, Alan W. Irwin ir...@beluga.phys.uvic.cawrote: On 2011-12-29 18:34-0500 David Cole wrote: I've considered your plea, but after looking at the diffs between 2.8.5 and 2.8.7-rc2, I think we ought to keep what we have and continue moving forward with it. The

[Cmake-commits] CMake branch, master, updated. v2.8.6-445-gadd4ad1

2011-12-29 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via add4ad1098a38c719a71fcb6e375fa50ce7be8ae (commit) from