[CMake] ADD_DEFINITION for just one executable, one specific config

2006-10-25 Thread Stefanos Carlström
How do I do to add a definition for just one of the executables in a CMakeLists.txt-file andonly for one of its configs?I want to define DEBUG for foo.exe but not for bar.exe, and I want DEBUG only to be set for the Debug configuration of that executable.I use Visual Studio 2005 and my CMakeLists.t

[CMake] INSTALL files

2006-10-25 Thread Gregor Berginc
Dear all, I am writting cmake file to build library libVisionComponents that includes sources from subdirectories (each subdir is different component). In the main cmake file, sources and headers are listed as ComponentName/File.cpp. The library is compiled successfully, but when I install it wit

[CMake] Support for Compaq Visual Fortran under Windows

2006-10-25 Thread Arjen Markus
Hello, I recently submitted the request to add a module for the Compaq Visual Fortran compiler (#3950). I can now confirm that this module works not only for a small standalone Fortran program, but it also works for the PLplot project where I can build shared libraries (DLLs if you will) that

Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-25 Thread Luigi Calori
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Hi, On Windows side, I built a zlib library and created a zlibConfig.cmake to go with it. The zlibConfig.cmake contains the zlib_DEFINITIONS, zlib_LIBRARIES, zlib_INCLUDE_DIRS so I don't have to worry Now, in another project

Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-25 Thread Alan W. Irwin
Now, in another project that uses zlib, FIND_PACKAGE(zlib) uses Findzlib.cmake that comes with CMake. How can I force it to use my zlibConfig.cmake instead? SET CMAKE_MODULE_PATH. That variable is documented in http://www.cmake.org/HTML/Documentation.html and also http://www.cmake.org/Wiki/CMak

[CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-25 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Hi, On Windows side, I built a zlib library and created a zlibConfig.cmake to go with it. The zlibConfig.cmake contains the zlib_DEFINITIONS, zlib_LIBRARIES, zlib_INCLUDE_DIRS so I don't have to worry Now, in another project that uses zlib, FIND_PACKAGE(zlib) uses Findzlib.cmake t

Re: [CMake] Error detecting sun studio compiler under linux

2006-10-25 Thread Doug Henry
Done.  Bug #3980.On 10/25/06, Brad King <[EMAIL PROTECTED]> wrote: Doug Henry wrote:> Looks like I may have missed a couple options (-R and -KPIC).  As far as> I can tell, the compiler should work exactly like the already supported> SunOS version of the compiler.  Just copy the options from the alr

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Doug Henry
 Since no one has used thiscompiler before I don't mind including the option until someone complains their version doesn't have it.I would think the same options would apply to SunOS.cmake. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailm

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Doug Henry
The sun compilers also have aliases: suncc, sunCC, sunf95, etc.  Maybe those names should be used instead?  I assume this is as easy as making a Linux-sunCC.cmake file.On 10/25/06, Brad King <[EMAIL PROTECTED]> wrote: Doug Henry wrote:> Before I commit anything, I would like to verify how cmake is

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Brad King
Doug Henry wrote: > Before I commit anything, I would like to verify how cmake is doing its > compiler detection. Is everything simply based on name? I can have cc > in my path which is gcc, or I can set my path in a way that has cc from > sun studio. Is cmake capable of telling the difference?

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Doug Henry
Before I commit anything, I would like to verify how cmake is doing its compiler detection.  Is everything simply based on name?  I can have cc in my path which is gcc, or I can set my path in a way that has cc from sun studio.  Is cmake capable of telling the difference?  I have a problem where I

Re: [CMake] CTest still unable to communicate with Dart2 server

2006-10-25 Thread Todd Pitts
Warren, I checked and no environment variables with HTTP in them are defined in the bash shell. -Todd On Wed, 2006-10-25 at 10:32 -0600, Warren Turkal wrote: > On Wednesday 25 October 2006 07:53, Todd Pitts wrote: > > I did try using the fully qualified name - It still > > tries to con

Re: [CMake] CTest still unable to communicate with Dart2 server

2006-10-25 Thread Warren Turkal
On Wednesday 25 October 2006 07:53, Todd Pitts wrote: >  I did try using the fully qualified name - It still > tries to contact the proxy server (not sure why - /etc/host.conf is > order hosts,bind) and then says access denied. Are any of the environment variables controlling proxy usage defined,

Re: [CMake] Strange options for Sun Studio compiler

2006-10-25 Thread Brad King
Doug Henry wrote: > I noticed that the default options for build mode may be a bit strange > for sun compilers. The release mode uses -xO2 and the minimum size mode > uses -xO3 (higher optimization level?). There seems to be an option > -xspace which reads: > > -xspace Do not do op

Re: [CMake] Error detecting sun studio compiler under linux

2006-10-25 Thread Brad King
Doug Henry wrote: > Looks like I may have missed a couple options (-R and -KPIC). As far as > I can tell, the compiler should work exactly like the already supported > SunOS version of the compiler. Just copy the options from the already > included SunOS.cmake file, which are almost the same as t

Re: [CMake] if( defined xxx ) does not work as (I) expected

2006-10-25 Thread Michael Hufer
Thanks Brad. Ouch... as this was one of these obvious errors anybody else but yourself sees immediately ;-). Thanks again, Micha. > Michael Hufer wrote: > > --- > > [...] > > if( DEFINED ${EXT_LINK_FLAGS} ) > > message( "module ${EXT}: adding the linker flags '${EXT_LINK_FLAGS}'"

Re: [CMake] if( defined xxx ) does not work as (I) expected

2006-10-25 Thread Brad King
Michael Hufer wrote: > --- > [...] > if( DEFINED ${EXT_LINK_FLAGS} ) > message( "module ${EXT}: adding the linker flags '${EXT_LINK_FLAGS}'" ) > set_target_properties( ${MODULE} PROPERTIES LINK_FLAGS > "${EXT_LINK_FLAGS}" ) > endif( DEFINED ${EXT_LINK_FLAGS} ) > [...] > --- > which is

Re: Re: [CMake] CTest still unable to communicate with Dart2 server

2006-10-25 Thread Todd Pitts
David, I understand. I did try using the fully qualified name - It still tries to contact the proxy server (not sure why - /etc/host.conf is order hosts,bind) and then says access denied. However, I can telnet to the port and DartClient.jar can talk. Also, I can monitor the port activit

Re: [CMake] if( defined xxx ) does not work as (I) expected

2006-10-25 Thread Michael Hufer
Hi Brad, thanks for your quick reply. Are you sure it actually worked? There should be three messages showing the 'java' link flags in the cmake output. Here is what I get: --- [EMAIL PROTECTED]:[xgen-3.5.0]> cd build/Linux [EMAIL PROTECTED]:[Linux]> cmake ../.. -- Check for working C compiler:

Re: Re: [CMake] CTest still unable to communicate with Dart2 server

2006-10-25 Thread David Cole
Using localhost is not a realistic long term scenario that can be shared by multiple users anyhow... Does this work if you try submitting by real name or IP instead of using "localhost"? Does it work if you submit from another machine? I agree that it should work, but I'm not really surprised it

Re: [CMake] CTest still unable to communicate with Dart2 server

2006-10-25 Thread Todd Pitts
David, I tried telnetting to localhost at 8081 and got a connection without difficulty: telnet localhost 8081 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. -Todd > wrote:Have you tried using "http" as the method instead? > > On 10/25/06, Todd Pi

Re: [CMake] if( defined xxx ) does not work as (I) expected

2006-10-25 Thread Brad King
Michael Hufer wrote: > Hi all, > I am new to CMake and am currently switching the make system for our X-Gen > product to CMake. > Since the project contains a lot of shared libraries I wrote a macro to ease > the writing of CMakeLists.txt for them. The macro receives a list of > "external" libra

Re: [CMake] CTest still unable to communicate with Dart2 server

2006-10-25 Thread Todd Pitts
David, Thank you for responding so quickly. I tried http and got an error saying it could not resolve the hostname "http". I looked in the output logs and found the address http://http//localhost:8081 so I changed the drop location from http://localhost:8081 to localhost:8081. Not it si

Re: [CMake] CTest still unable to communicate with Dart2 server

2006-10-25 Thread David Cole
Have you tried using "http" as the method instead? On 10/25/06, Todd Pitts <[EMAIL PROTECTED]> wrote: All, I have not yet been able to get CTest to communicate with the dart2 server. DartClient.jar does just fine. DartServer.jar gives no indication in its logs that anything has even tried

[CMake] CTest still unable to communicate with Dart2 server

2006-10-25 Thread Todd Pitts
All, I have not yet been able to get CTest to communicate with the dart2 server. DartClient.jar does just fine. DartServer.jar gives no indication in its logs that anything has even tried to contact it. CTest returns http 403 error without any further explanation. The host (localhost) and po