[CMake] Fwd: Installing Find.cmake files

2008-06-12 Thread Horacio Sanson
I have created some shared libraries I use in some of my applications. The CMake of these libraries generate the respective Find.cmake files that other applications use to locate the header and binary files they need to link it. At this time I simply create a directory in my home folder and acces

Re: [CMake] FIND_PACKAGE from another Project

2008-06-09 Thread Horacio Sanson
On Mon, Jun 9, 2008 at 7:14 AM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > On Friday 06 June 2008, hsanson wrote: >> From the CMake 2.4 documentation I get: >> >> Directories listed in CMAKE_MODULE_PATH are searched for files called >> "Find.cmake". If no such file is found, it is expected th

Re: [CMake] Force out of source build

2008-06-06 Thread Horacio Sanson
Thanks, This is what I have now MACRO(MACRO_ENSURE_OUT_OF_SOURCE_BUILD) STRING(COMPARE EQUAL "${${PROJECT_NAME}_SOURCE_DIR}" "${${PROJECT_NAME}_BINARY_DIR}" insource) GET_FILENAME_COMPONENT(PARENTDIR ${${PROJECT_NAME}_SOURCE_DIR} PATH) STRING(COMPARE EQUAL "${${PROJECT_NAME}_SOURCE_D

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-23 Thread Horacio Sanson
On Wed, Apr 23, 2008 at 5:39 PM, Pau Garcia i Quiles <[EMAIL PROTECTED]> wrote: > Quoting Horacio Sanson <[EMAIL PROTECTED]>: > > Either you have not re-run CMake or your CMake is broken. Did you install > it from Ubuntu packages? > I have tried this in two separate s

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-23 Thread Horacio Sanson
On Wed, Apr 23, 2008 at 1:53 PM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > On 2008-04-22 21:48-0400 Amitha Perera wrote: > > > > Horacio Sanson wrote: > > > > > The problem is that in linux I have to add the sctp library (i.e. > > > -lsctp) if not

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread Horacio Sanson
I On Tue, Apr 22, 2008 at 5:49 PM, Pau Garcia i Quiles <[EMAIL PROTECTED]> wrote: > Quoting Horacio Sanson <[EMAIL PROTECTED]>: > > > > On Mon, Apr 21, 2008 at 7:01 PM, Pau Garcia i Quiles > > <[EMAIL PROTECTED]> wrote: > > > &g

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread Horacio Sanson
On Tue, Apr 22, 2008 at 8:31 PM, dizzy <[EMAIL PROTECTED]> wrote: > > On Monday 21 April 2008 12:51:46 Horacio Sanson wrote: > > I can use IF(WIN32) and IF(UNIX) to set some variables depending if > > cmake is executed in Windows or UNIX systems. The problem is that U

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-21 Thread Horacio Sanson
On Mon, Apr 21, 2008 at 7:01 PM, Pau Garcia i Quiles <[EMAIL PROTECTED]> wrote: > > Quoting Horacio Sanson <[EMAIL PROTECTED]>: > > > > I can use IF(WIN32) and IF(UNIX) to set some variables depending if > > cmake is executed in Windows or UNIX systems. The prob

[CMake] Differentiate between Linux and FreeBSD

2008-04-21 Thread Horacio Sanson
I can use IF(WIN32) and IF(UNIX) to set some variables depending if cmake is executed in Windows or UNIX systems. The problem is that UNIX in this context includes both Linux and FreeBSD. Has CMake a way to know if it is running in a Linux box or a FreeBSD box?? regards, Horacio _