Re: [CMake] embedded path in shared library linked into another shared library

2011-04-14 Thread Alexander Neundorf
On Thursday 14 April 2011, Michael Hertling wrote: > On 04/13/2011 08:52 PM, Alexander Neundorf wrote: > > On Tuesday 12 April 2011, Michael Hertling wrote: > >> On 04/11/2011 11:10 PM, David Aiken wrote: > >>> That didn't work for me.. I've got it simplified down to: > >>> SET(CMAKE_SKIP_RPATH TRU

[CMake] Auto bind Visual Studio solution to Team Foundation Server

2011-04-14 Thread Rong Zeng
Hi, I just converted my project to use CMake2.6 to generate Visual Studio 2008 solutions and projects. It works great! However, is there any CMake command or option, which can automatically bind the generated solution to Team Foundation Server source control? Thanks very much, Rong

Re: [CMake] Status of FindHDF5.cmake in CMake?

2011-04-14 Thread Lori Pritchett-Sheats
Hi I had not seen a reply to your question and I thought I give my $0.02. I'm fairly new to CMake and I've run into this problem as well. The only solution I came up with was calling find_package(HDF5 ... *) again if it fails the first time. On my project, I search for HDF5 using find_packag

Re: [CMake] Executing processes as part of a COMMAND option in add_custom_command

2011-04-14 Thread Michael Hertling
On 04/14/2011 12:44 PM, J.S. van Bethlehem wrote: > Dear users, > > As a new user CMake I've come across some things I don't fully > understand yet. Here is such a thing: > when I build documentation, I want to run some files from a 'demo' > subdirectory and create output - suppose the (binary)

Re: [CMake] 'uncaching' a path found by the find_XXX functions

2011-04-14 Thread J.S. van Bethlehem
Michael Wild wrote: On 04/14/2011 12:46 PM, J.S. van Bethlehem wrote: Dear users, As a new user CMake I've come across some things I don't fully understand yet. Here is such a thing: When a library consists of multiple separate lib-files, from the archives it seems that the way to go when wr

Re: [CMake] multiple files/directory removal using cmake -E remove and cmake -E remove_directory

2011-04-14 Thread Michael Wild
On 04/14/2011 12:47 PM, J.S. van Bethlehem wrote: > Dear users, > > As a new user CMake I've come across some things I don't fully > understand yet. Here is such a thing: when using cmake -E is there a > way to pass multiple files at once when using 'remove' or > 'remove_directory', ie something

Re: [CMake] 'uncaching' a path found by the find_XXX functions

2011-04-14 Thread Michael Wild
On 04/14/2011 12:46 PM, J.S. van Bethlehem wrote: > Dear users, > > As a new user CMake I've come across some things I don't fully > understand yet. Here is such a thing: > When a library consists of multiple separate lib-files, from the > archives it seems that the way to go when writing a 'Find'

[CMake] multiple files/directory removal using cmake -E remove and cmake -E remove_directory

2011-04-14 Thread J.S. van Bethlehem
Dear users, As a new user CMake I've come across some things I don't fully understand yet. Here is such a thing: when using cmake -E is there a way to pass multiple files at once when using 'remove' or 'remove_directory', ie something like: cmake -E remove file1 file2 file3 (well... that synta

[CMake] 'uncaching' a path found by the find_XXX functions

2011-04-14 Thread J.S. van Bethlehem
Dear users, As a new user CMake I've come across some things I don't fully understand yet. Here is such a thing: When a library consists of multiple separate lib-files, from the archives it seems that the way to go when writing a 'Find'-module for such a library, say library LIB, is first find

[CMake] Executing processes as part of a COMMAND option in add_custom_command

2011-04-14 Thread J.S. van Bethlehem
Dear users, As a new user CMake I've come across some things I don't fully understand yet. Here is such a thing: when I build documentation, I want to run some files from a 'demo' subdirectory and create output - suppose the (binary) file is called 'func1_demo', then in my old Makefiles I use

Re: [CMake] DESTDIR behaviour with different variable name

2011-04-14 Thread Tomasz Grobelny
On Thu, 14 Apr 2011 05:57:34 +0200, Michael Hertling wrote: > On 04/12/2011 04:36 PM, Tomasz Grobelny wrote: >> Somewhat hackish (especially this \$\(firstword \$\(MAKEFILE_LIST\)\) > > Hackish, ugly, non-portable and absolutely inadvisable. ;-) > >> part). I've just come up with another solutio

Re: [CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-14 Thread Michael Wild
On 04/14/2011 09:31 AM, Gabriele Greco wrote: > > You're right about the explicit listing, but you should do the copying > using configure_file(... COPYONLY). And don't even think about using > file(GLOB) and friends, that's usually the wrong approach. > > > The problem is that those

Re: [CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-14 Thread Gabriele Greco
> > > You're right about the explicit listing, but you should do the copying > using configure_file(... COPYONLY). And don't even think about using > file(GLOB) and friends, that's usually the wrong approach. > > The problem is that those files can be modified by the user and in that case obviously