[CMake] how to get compile environment ($host) in cmake

2007-05-16 Thread haibin zhang
Hi all : how to get $host in cmake ? In autotool , it can use $host to get compile environment, example cygwin,i686-pc-mingw32 . regards - Mp3疯狂搜-新歌热歌高速下 ___ CMake mailing list CMake@cmake.org ht

[CMake] Re: Finding libraries under Windows

2007-05-16 Thread Leon Moctezuma
Thanks Brandon and Mike I did something similar to Mike's code adn this wiki page[1 ]. I could see different things in Chiken, that helped me to understand cmake better. Here is the script: IIF(WIN32) FIND_PATH(FREEGLUT_INCLUDE_DIR

Re: [CMake] Finding libraries under Windows

2007-05-16 Thread Mike Jackson
For zlib you can use the FIND_PACKAGE(Zlib). For others you can make up your own scripts. I will include the contents of one I wrote to find the HDF libraries. Hope it helps out. #--- # This will find the HDF5 librari

Re: [CMake] Differentiating between FreeBSD and Linuxs

2007-05-16 Thread Hendrik Sattler
Am Mittwoch 16 Mai 2007 18:52 schrieb Ajay Divekar: > I was trying to differentiate between FreeBSD and Linux's and found that by > using CMAKE_SYSTEM_NAME variable I will be able to do that. I had > > if (CMAKE_SYSTEM_NAME MATCHES Linux) > SET(...) > ELSE(CMAKE_SYSTEM_NAME MATCHES Linux) > SET

Re: [CMake] fortran, modules and case

2007-05-16 Thread Alan W. Irwin
On 2007-05-16 14:06-0700 Alan W. Irwin wrote: Hi Andrew: Just out of curiosity I tried your patch (to 2.4.6) to see whether it would make any difference to bug 3984, "A fortran 95 module dependency issue". As expected (everything is in lower case in the attached simple example), it makes no dif

Re: [CMake] Finding libraries under Windows

2007-05-16 Thread Brandon Van Every
I don't understand why this should be a problem. Chicken searches for many header files and libraries on various platforms. Try looking at the Chicken sources for inspiration. http://www.call-with-current-continuation.org Cheers, Brandon Van Every On 5/16/07, Leon Moctezuma <[EMAIL PROTECTED]

[CMake] Finding libraries under Windows

2007-05-16 Thread Leon Moctezuma
Hi all. I'm Leon Moctezuma, a cs student, who is participating in GSoC and working on Freepv, we are trying to use cmake instead of autoconf for the projects building process we have been able to create a basic CMakeLists.txt under both Linux and Windows, It works almost fine. At this point I'm

Re: [CMake] fortran, modules and case

2007-05-16 Thread Warren Turkal
On Wednesday 16 May 2007 15:40, Maik Beckmann wrote: > The research group I'm working for [1] as a student helper uses fortran 95 > for everything (FEM, contact analysis ...), but there's a lack of a > portable building tool(essentially WinXP and SunOS). Thus I'm learning > lex/yacc and try to mast

Re: [CMake] fortran, modules and case

2007-05-16 Thread Maik Beckmann
Am Mittwoch, 16. Mai 2007 23:06:50 schrieb Alan W. Irwin: > Just out of curiosity I tried your patch (to 2.4.6) to see whether it would > make any difference to bug 3984, "A fortran 95 module dependency issue". > As expected (everything is in lower case in the attached simple example), > it makes

Re: [CMake] INSTALL(DIRECTORY ...) does not preserve symlinks

2007-05-16 Thread Guilherme Balena Versiani
Sorry, I forgot to post CMake version I am using: it is 2.4.6. I didn't tried previous versions. Guilherme Balena Versiani escreveu: Hello all, I have a big software distribution with several third-party software bundled with it. I use CMake to download these third-party packages, unpack, co

Re: [CMake] fortran, modules and case

2007-05-16 Thread Alan W. Irwin
On 2007-05-16 12:19-0600 Andrew Brydon wrote: Hi, I am trying to port a large existing fortran library to using cmake, and have come up against a problem with the use of inconsistent module cases in the code (this is permitted in fortran). I believe the logic in the existing fortran depend

Re: [CMake] No support for lex/flex and yacc/bison?

2007-05-16 Thread James Bigler
I use 2.4.6 as well, and it works just fine. Try attaching the CMakeLists.txt file that you are using. James Mielcarek, Donn wrote: I'm running 2.4.6, which i suspect is the cause of many problems. -Original Message- From: James Bigler [mailto:[EMAIL PROTECTED] Sent: Wed 5/16/2007 2:

Re: [CMake] Differentiating between FreeBSD and Linuxs

2007-05-16 Thread Eric Noulard
2007/5/16, Ajay Divekar <[EMAIL PROTECTED]>: I was trying to use this tag in a script which was called using the install script command. Guess these tags are not available there. You must be right. You may try the attached system.cmake script with cmake -P system.cmake this should work. --

[CMake] fortran, modules and case

2007-05-16 Thread Andrew Brydon
Hi, I am trying to port a large existing fortran library to using cmake, and have come up against a problem with the use of inconsistent module cases in the code (this is permitted in fortran). I believe the logic in the existing fortran dependancy scanner does not consistently change th

Re: [CMake] Differentiating between FreeBSD and Linuxs

2007-05-16 Thread Eric Noulard
2007/5/16, Ajay Divekar <[EMAIL PROTECTED]>: I was trying to differentiate between FreeBSD and Linux's and found that by using CMAKE_SYSTEM_NAME variable I will be able to do that. I had if (CMAKE_SYSTEM_NAME MATCHES Linux) SET(...) ELSE(CMAKE_SYSTEM_NAME MATCHES Linux) SET(...) ENDIF(CMAKE_

Re: [CMake] different obj dirs for debug and release

2007-05-16 Thread Alexander Neundorf
On Wednesday 16 May 2007 12:18, Davide Bacchet wrote: > Hi, > > it there a way to set different object directories for debug/release > build (for gnu make and nmake targets)? > Now, the object files are placed in the LIBNAME.dir directories, but if > I first build a debug version and then a release

[CMake] Differentiating between FreeBSD and Linuxs

2007-05-16 Thread Ajay Divekar
I was trying to differentiate between FreeBSD and Linux's and found that by using CMAKE_SYSTEM_NAME variable I will be able to do that. I had if (CMAKE_SYSTEM_NAME MATCHES Linux) SET(...) ELSE(CMAKE_SYSTEM_NAME MATCHES Linux) SET(...) ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux) This works on fre

[CMake] different obj dirs for debug and release

2007-05-16 Thread Davide Bacchet
Hi, it there a way to set different object directories for debug/release build (for gnu make and nmake targets)? Now, the object files are placed in the LIBNAME.dir directories, but if I first build a debug version and then a release using the same CMakeLists files, the obj files will be overw

Re: [CMake] No support for lex/flex and yacc/bison?

2007-05-16 Thread James Bigler
Mielcarek, Donn wrote: Thanks for posting the flex/bison code. Two things: I had to change: SET(BISON_TAB_C "${CMAKE_CURRENT_BINARY_DIR}/${parser_base}.tab.cc") to SET(BISON_TAB_C "${CMAKE_CURRENT_BINARY_DIR}/${parser_base}.tab.bison_cc") This code was designed to copy whatever bison genera

Re: [CMake] No support for lex/flex and yacc/bison?

2007-05-16 Thread Mielcarek, Donn
Thanks for posting the flex/bison code. Two things: I had to change: SET(BISON_TAB_C "${CMAKE_CURRENT_BINARY_DIR}/${parser_base}.tab.cc") to SET(BISON_TAB_C "${CMAKE_CURRENT_BINARY_DIR}/${parser_base}.tab.bison_cc") (and likewise for the other constructs) Otherwise I would get the message: C

[CMake] INSTALL(DIRECTORY ...) does not preserve symlinks

2007-05-16 Thread Guilherme Balena Versiani
Hello all, I have a big software distribution with several third-party software bundled with it. I use CMake to download these third-party packages, unpack, configure and install it temporarily in a CMAKE_BINARY_DIR subdir (e.g. ${CMAKE_BINARY_DIR}/dist) -- after this process I compile the re

[CMake] Problems using Cmake to define specific options in VC++

2007-05-16 Thread Frédéric Stevens
Hi, I have been looking for a while how to change some options in the project created without finding them. Here is what I intend to change : "Use UNICODE Response Files" in the C++ part "Use Library Dependency Inputs" in the Linker part I would be really glad if someone could help me on that pr

re:Re: [CMake] ACE + Qt 4.1 Problem

2007-05-16 Thread Pierre Malarme
>Hello, > >It's difficult to help without seeing the code. However, are you using > ACE_QtReactor to make sure the ACE event loop and the Qt event loop >do not lock each other? > i find a solution : i don't use the handle in the recv() and send() functions of ACE and it works great. I don't

Re: [CMake] ACE + Qt 4.1 Problem

2007-05-16 Thread Pau Garcia i Quiles
Hello, How is this related to CMake? On the other hand, why aren't you using QtTelnet? http://www.trolltech.com/products/qt/addon/solutions/catalog/4/Utilities/qttelnet/ -- Pau Garcia i Quiles http://www.elpauer.org (Due to the amount of work, I usually need 10 days to answer) Quoting Pierre

Re: [CMake] Specifying build architectures on Mac OS X (ppc7400 does not work?)

2007-05-16 Thread Pascal Fleury
On Tuesday 15 May 2007 21:17:14 Sean McBride wrote: > On 2007-05-15 14:22, Bill Hoffman said: > It seems to be passing "-arch ppc7400" correctly. Also, > > lipo -info /Users/sean/kitware/VTK-pristine-bin/Imaging/CMakeFiles/ > vtkImaging.dir/vtkImageReslice.o > > says: > > Architectures in the fat

[CMake] ACE + Qt 4.1 Problem

2007-05-16 Thread Pierre Malarme
I build classes that use ACE to connect to a device with TELNET connexion. When i test the classes, there is no problem, and it work good. I make a GUI using Qt. When i test the GUI there is no problem. But, when i try to use the GUI with the telnet implemenation, my os freeze and the softwa

[CMake] Compiler issue

2007-05-16 Thread Sergei Prasalovich
Hi, I am working with Insight Segmentation and Registration Toolkit, which i successfully built using Cmake on Unix (Mac OS X). I used the default compiler gcc 3.3 for that. Everything worked smoothly with configuring and compiling applications for a month until recently when I started gettin