Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread Pau Garcia i Quiles
Quoting Horacio Sanson <[EMAIL PROTECTED]>: 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 pr

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread dizzy
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 UNIX > in this context includes both Linux and FreeBSD. > > Has CMake a way to know if it is running in a

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread Josef Karthauser
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of dizzy > Sent: 22 April 2008 12:31 > To: cmake@cmake.org > Subject: Re: [CMake] Differentiate between Linux and FreeBSD > > On Monday 21 April 2008 12:51:46 Horacio Sanson wrote: > > I can use IF(WIN32)

[CMake] How to link executable with libraries containing circular dependencies

2008-04-22 Thread Martin Apel
Hi there, I am trying to link an executable with multiple libraries, which reference each other in a circular fashion. It seems, that I cannot specify the same library multiple times in TARGET_LINK_LIBRARIES, so the link line will always end up with each library listed exactly once. In my case

[CMake] Linker ignores LINK_DIRECTORIES

2008-04-22 Thread Gabor Fekete
Hi, I use LINK_DIRECTORIES to specify the library directories for cmake. But during compilation I see (with CMAKE_VERBOSE_MAKEFILE) that the linker (ld) is not called with the paths that were specified in LINK_DIRECTORIES. What can be the reason? Here is my cmake list file: PROJECT(rat-server) S

[CMake] moc not being run successfully (every time) in Visual Studio 2003

2008-04-22 Thread John Drescher
I am running CMake-2.7.2008.04.21 and under Visual Studio moc does not run correctly all the time for my QT4 projects. Here is the error: -- Build started: Project: LungAnalysis, Configuration: Debug Win32 -- Generating qrc_LungAnalysis.cxx Generating moc_textwidget.cxx moc: Cannot open

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 UNIX > > in this context incl

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: > > > > > > > > Quoting Horacio Sanson <[EMAIL PROTECTED]>: > > > > > > > > >

[CMake] CHECK_FUNCTION_EXISTS question

2008-04-22 Thread Mathieu Malaterre
Hi there, If I understand correctly CHECK_FUNCTION_EXISTS is only checking that the c symbol passed to the CHECK_FUNCTION_EXISTS macro can be found by the linker, right ? I have a case where the symbol (namely _snprintf) can be found, but the C declaration is not found in cygwin-stdio.h (in whic

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-22 Thread Doug Gregor
On Sat, Apr 12, 2008 at 11:18 AM, Mike Jackson <[EMAIL PROTECTED]> wrote: > Ok. I downloaded the latest CMake nightly (2.7-20080412) and gave this > FindBoost a shot with a MinGW current Stable release, which is I think > 3.14, at least according to the _mingw.h file. > > It didn't work. Here ar

[CMake] cmake and distutils

2008-04-22 Thread Christophe Alexandre
Hi all, I'm working on a C++ project exporting its API with in Python. Is there an "easy..." way to compile and generate the Python Modules with cmake. I find the the distutils and cmake hard to use together : not the same build management, the installation process,... Wouldn't it be better

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread Alexander Neundorf
On Tuesday 22 April 2008, Josef Karthauser wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > > Behalf Of dizzy > > Sent: 22 April 2008 12:31 > > To: cmake@cmake.org > > Subject: Re: [CMake] Differentiate between Linux and FreeBSD > > > > On Monday 21 A

Re: [CMake] cmake and distutils

2008-04-22 Thread Alexander Neundorf
On Tuesday 22 April 2008, Christophe Alexandre wrote: > Hi all, > > I'm working on a C++ project exporting its API with in Python. > Is there an "easy..." way to compile and generate the Python Modules > with cmake. > I find the the distutils and cmake hard to use together : not the same > build ma

Re: [CMake] CHECK_FUNCTION_EXISTS question

2008-04-22 Thread Eric Noulard
2008/4/22, Mathieu Malaterre <[EMAIL PROTECTED]>: > Hi there, > > If I understand correctly CHECK_FUNCTION_EXISTS is only checking > that the c symbol passed to the CHECK_FUNCTION_EXISTS macro can be > found by the linker, right ? I have a case where the symbol (namely > _snprintf) can be foun

Re: [CMake] cmake and distutils

2008-04-22 Thread Alan W. Irwin
On 2008-04-22 20:06+0200 Christophe Alexandre wrote: Hi all, I'm working on a C++ project exporting its API with in Python. Is there an "easy..." way to compile and generate the Python Modules with cmake. I find the the distutils and cmake hard to use together : not the same build management,

Re: [CMake] Some minor issues for 2.6.0-RC-8

2008-04-22 Thread Miguel A. Figueroa-Villanueva
On Fri, Apr 18, 2008 at 10:35 AM, Bill Hoffman wrote: > Alan W. Irwin wrote: > > (1) In FindwxWidgets.cmake, wxWidgets_LIBRARIES is documented as > > "Path to the wxWidgets libraries". From the above result (before my macro > > transformed it) this documentation should be changed to something like

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread Amitha Perera
Horacio Sanson wrote: The problem is that in linux I have to add the sctp library (i.e. -lsctp) if not compilation fails and in FreeBSD adding that library would cause the compiler to complain. if there is a better way to do this I am eager to learn it. Not necessarily "better", but if sctp ex

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-22 Thread Alan W. Irwin
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 compilation fails and in FreeBSD adding that library would cause the compiler to complain. if there is a better way to do this I am eager to lear

[CMake] Change standart VC Linker (link.exe)

2008-04-22 Thread Ivan Chupahin
Hi, everyone! I once wrote here about problem of change VS linker link.exe to other linker, may be now someone can help solve it? I try to change linker like that: STRING(REPLACE "${CMAKE_CXX_COMPILER}" "someotherlinker.exe" CMAKE_CXX_LINK_EXECUTABLE ${CMAKE_CXX_LINK_EXECUTABLE}) But it`s not work

Re: [CMake] Some minor issues for 2.6.0-RC-8

2008-04-22 Thread Hendrik Sattler
Zitat von "Miguel A. Figueroa-Villanueva" <[EMAIL PROTECTED]>: On Fri, Apr 18, 2008 at 10:35 AM, Bill Hoffman wrote: Alan W. Irwin wrote: > (1) In FindwxWidgets.cmake, wxWidgets_LIBRARIES is documented as > "Path to the wxWidgets libraries". From the above result (before my macro > transformed