Re: [CMake] Using CPACK to generate RPM

2006-09-19 Thread Slava Semushin
--- Brad King 2006-09-19 10:17:27 -0400 +++ Slava Semushin 2006-09-20 11:47:40 +0700 BK> In CMake 2.4 CPack is still in beta. Really beta... =( [EMAIL PROTECTED] ~]$ cpack CPack Error: CPack generator not specified terminate called after throwing an instance of 'std::logic_error

[CMake] ctest ques.: capture driver errs

2006-09-19 Thread Dean Inglis
I have a build similar to VTK/Examples/Build/vtkMy and I have added ctest funtionality to test my custom VTK classes. In a test driver that evaluates numeric expressions, e.g. a stupid ex.: in myTest(int,char*[]) { int a =1; int b = 2; int retVal = 0; if((a + b) != 500) { vtkGene

Re: [CMake] Static Linking C++ Library

2006-09-19 Thread Brad King
Mike Melanson wrote: > Brad King wrote: >> You can link the entire program statically if you don't have any of your >> own shared libraries. Then running "ldd myexe" will produce a message >> that the executable is not dynamically linked. This requires just >> adding "-static" to CMAKE_EXE_LINKER

Re: [CMake] Static Linking C++ Library

2006-09-19 Thread Mike Melanson
Brad King wrote: You can link the entire program statically if you don't have any of your own shared libraries. Then running "ldd myexe" will produce a message that the executable is not dynamically linked. This requires just adding "-static" to CMAKE_EXE_LINKER_FLAGS (or the appropriate option

Re: [CMake] Static Linking C++ Library

2006-09-19 Thread Brad King
Mike Melanson wrote: > Brad King wrote: >> This is not really a problem that a build system can solve directly. >> The native build tools need to be configured to support it. In order to >> link statically to the C++ runtime but dynamically to the C runtime and >> other libraries you need to confi

Re: [CMake] Static Linking C++ Library

2006-09-19 Thread Mike Melanson
Brad King wrote: This is not really a problem that a build system can solve directly. The native build tools need to be configured to support it. In order to link statically to the C++ runtime but dynamically to the C runtime and other libraries you need to configure the host system properly.

Re: [CMake] Static Linking C++ Library

2006-09-19 Thread Brad King
Mike Melanson wrote: > I am working on a fairly large software project that I autotool'd some > time ago. The build system has been working reasonably well. However, I > have hit a possible limitation that I don't know how to solve with > autotools. So I wanted to know if CMake can solve this probl

[CMake] Static Linking C++ Library

2006-09-19 Thread Mike Melanson
Hi, I am working on a fairly large software project that I autotool'd some time ago. The build system has been working reasonably well. However, I have hit a possible limitation that I don't know how to solve with autotools. So I wanted to know if CMake can solve this problem: I need to stat

Re: [CMake] template files (.t) in Windows VCproj builds

2006-09-19 Thread Brad King
Philip Lowman wrote: > 1.) [minor] After adding all of my header files (.h) and template files > (.t) to the ADD_LIBRARY command I noticed that the header files were > being placed in a separate folder called "Header Files" in the VC > Projects. Cool. Unfortunately, however, the template files we

[CMake] template files (.t) in Windows VCproj builds

2006-09-19 Thread Philip Lowman
Hi, I'm experimenting with CMake (2.4 patch 3) and noticed a couple of peculiar things with template files and the Windows Vcproj files I was curious about. I have a collection of libraries all being built in separate directories with the ADD_LIBRARY() directive. I started off with just havin

Re: [CMake] The CMake build system for PLplot is now essentially complete

2006-09-19 Thread Alan W. Irwin
On 2006-09-18 07:34-0400 David Cole wrote: You guys should add yourselves to the list of projects using CMake on the CMake Wiki: http://www.cmake.org/Wiki/CMake_Projects Thanks for that suggestion Done. Alan __ Alan W. Irwin Astronomical research affiliation with

RE: [CMake] elseif request

2006-09-19 Thread Ken Martin
So ... > if(cond1) >block of statements > elseif(cond2) >block of statements > elseif(cond3) >block of statements > > ... > > elseif(condn) >block of statements > else(cond1) >block of statements > endif(cond1) And with LOOSE set > if(cond1) >block of statements > elsei

Re: [CMake] Using CPACK to generate RPM

2006-09-19 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > I am sorry to bomb the mailing list with all my questions. > However, CMake is pretty exciting and my group is very likely to > migrate to it. > I found a link that mentions that CPACK can generate an RPM: > http://wiki.na-mic.org/

Re: [CMake] 3rd party modules

2006-09-19 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Some packages provide modules/programs that > provide information where they were installed. For > example, "FooLibrary" may provide > FooLibrary.m4 for auto-tools, > FooLibrary.pc for pkg-confing, > or > Foo-config for anything else. >

Re: [CMake] How to specify default build dir in CMakeLists.txt?

2006-09-19 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > The goal is to have an out-of-source build by default. > The target is a programmer who compiles my package just > to get the libraries needed for another project. He would > have one less option to worry about, especially, if > he wasn't

Re: [CMake] Portable "treat warnings as errors"?

2006-09-19 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > I thought about doing it this way. However, then I thought > that there might be some portable way of doing that which would save me > all the IF/ENDIF's. Sounds like something relatively easy to implement. > Should I add that to CMake's

Re: [CMake] Portable "treat warnings as errors"?

2006-09-19 Thread frederic heem
Alle 14:00, martedì 19 settembre 2006, Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA ha scritto: > I thought about doing it this way. However, then I thought > that there might be some portable way of doing that which would save me > all the IF/ENDIF's. Sounds like something relatively easy

RE: [CMake] Portable "treat warnings as errors"?

2006-09-19 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
I thought about doing it this way. However, then I thought that there might be some portable way of doing that which would save me all the IF/ENDIF's. Sounds like something relatively easy to implement. Should I add that to CMake's bug tracker? Anyway, thank You for the code snippet

Re: [CMake] Portable "treat warnings as errors"?

2006-09-19 Thread Sylvain Benner
If there is no such variable, you can still add the flag by yourself within an IF statement. IF(CMAKE_COMPILER_IS_GNUCXX) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") ENDIF(CMAKE_COMPILER_IS_GNUCXX) Sylvain - Original Message - From: "Kedzierski, Artur CIV NAVSURFWARCENDIV CO

[CMake] Portable "treat warnings as errors"?

2006-09-19 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Yet another question... I cannot find an answer in the documentations. Is there something like CMAKE_CXX_WARNING_AS_ERRORS variable that if set, would get translated to \WX on Windows and -Werror on GCC compilers? I appreciate your help. -- Artur Kedzierski smime.p7s Des

[CMake] About testing with ctest

2006-09-19 Thread Slava Semushin
Hello all! I tried using ctect and have some questions. - I added ENABLE_TESTING() to CMakeLists.txt and ADD_TEST() to tests/CMakeLists.txt and my test works. But I see autogenerated files with name DartTestfile.txt in src/ also: [EMAIL PROTECTED] ~/openfm]$ cat sr