Re: [CMake] Questions related to PkgConfig

2008-01-28 Thread Alan W. Irwin
On 2008-01-28 19:45-0800 Radu Serban wrote: Hi, I have a couple of questions related to using pkg-config in CMake: 1) Using information returned by the macro pkg_check_module from FindPkgConfig.cmake This should be straightforward but I just cannot get it to work. Say I create my own libra

Re: [CMake] problem setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX

2008-01-28 Thread Yogesh Marwaha
All I want is the ability to change default values for CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX, i.e. if the user configures with only cmake .. If the user want it, these options should be changeable by supplying -DCMAKE_BUILD_TYPE and -DCMAKE_INSTALL_PREFIX to cmake Can you help me now, please.

[CMake] Questions related to PkgConfig

2008-01-28 Thread Radu Serban
Hi, I have a couple of questions related to using pkg-config in CMake: 1) Using information returned by the macro pkg_check_module from FindPkgConfig.cmake This should be straightforward but I just cannot get it to work. Say I create my own library "mylib" which depends on a module "cvodes"

Re: [CMake] $ENV usage and documentation

2008-01-28 Thread Bill Hoffman
1. $ENV{VAR} is supported to get environment variables. 2. You can set them with SET(ENV{VAR} value), however, it is only set as long as CMake is running. Really only useful in ctest scripts or scripts that need to pass information to programs they directly run. 3. If something is missing fr

[CMake] Specify path to vtkIOPython for Xdmf build

2008-01-28 Thread orion
I'm trying to build Xdmf on Fedora 8 using an updated VTK 5.1 package. The vtk Python libs get installed in /usr/lib/python2.5/site-packages/vtk/. It doesn't appear that any of the vtk cmake files reference that location directly. Closest I found is: /usr/lib/vtk-5.1/VTKConfig.cmake: SET(VTK_PY

Re: [CMake] cmake cvs breaks kde4 builds

2008-01-28 Thread Andreas Pakulat
On 28.01.08 08:35:30, Brad King wrote: > Andreas Pakulat wrote: >> Ok, I'll inform kde-buildsystem as this will probably need some time to >> be fixed... > > Thanks. Hopefully they can get it in a 4.0.1 patch release or something. There's one other thing that may have gone unnoticed under all the

Re: [CMake] problem setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX

2008-01-28 Thread Brandon Van Every
On Jan 28, 2008 12:31 PM, Yogesh Marwaha <[EMAIL PROTECTED]> wrote: > set (CMAKE_BUILD_TYPE Release) Please see http://www.cmake.org/Wiki/CMake_Useful_Variables for info on this variable. > set (CMAKE_INSTALL_PREFIX "/usr") I agree with the other poster that you should not set this unless you ha

Re: [CMake] problem setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX

2008-01-28 Thread Hendrik Sattler
Quoting Yogesh Marwaha <[EMAIL PROTECTED]>: I am having problem setting values for CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX Here is CMakeLists.txt in project root directory == project (eSpy) cmake_minimum_required (VERSION 2.4.0) set (CMAKE_BUILD_TYPE Release)

Re: [CMake] create pc pkgconfig file when installing

2008-01-28 Thread Hendrik Sattler
Quoting Christophe Alexandre <[EMAIL PROTECTED]>: How can I dynamically create a tool.pc pkgconfig file for my tool while installing it. I need to set a variable to the install destination : [EMAIL PROTECTED]@ and in my CMakeLists.txt, I use : set(DEST_DIR "$ENV{DESTDIR}") and then a CONFIGURE_FI

[CMake] problem setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX

2008-01-28 Thread Yogesh Marwaha
Hi I am having problem setting values for CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX Here is CMakeLists.txt in project root directory == project (eSpy) cmake_minimum_required (VERSION 2.4.0) set (CMAKE_BUILD_TYPE Release) set (CMAKE_INSTALL_PREFIX "/usr") find_packa

[CMake] create pc pkgconfig file when installing

2008-01-28 Thread Christophe Alexandre
Hi all, How can I dynamically create a tool.pc pkgconfig file for my tool while installing it. I need to set a variable to the install destination : [EMAIL PROTECTED]@ and in my CMakeLists.txt, I use : set(DEST_DIR "$ENV{DESTDIR}") and then a CONFIGURE_FILE directive. My problem is that the t

Re: [CMake] Unneeded escaping: how to stop it?

2008-01-28 Thread Steven Van Ingelgem
Hi Brandon, That was probably because it was too late to think clearly. I'm normally already chaotic, but when I'm sleepy it is worse a factor 1000! Please find enclosed a minimal example of what I tried to explain in my previous mails. The second "COMMAND" has been solved by "VERBATIM". But the

Re: [CMake] Unneeded escaping: how to stop it?

2008-01-28 Thread Brandon Van Every
On Jan 28, 2008 1:44 AM, Steven Van Ingelgem <[EMAIL PROTECTED]> wrote: > It didn't help very much though :S > > Now I get: > COMMAND if [ ! -e TEST ]; then echo ok && echo 2 && echo "test"; fi > ==> > if [ ! -e TEST "];" then echo ok "&&" "echo \"test\";" ">/dev/null" fi > > > So clearly the first

Re: [CMake] $ENV usage and documentation

2008-01-28 Thread Brandon Van Every
On Jan 28, 2008 12:16 AM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > On 2008-01-27 22:28-0500 Brandon Van Every wrote: > > > On Jan 27, 2008 8:34 PM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > >> I would like to be able to read arbitrary environment variables from within > >> cmake. The 2.4.8 docu

Re: [CMake] cmake cvs breaks kde4 builds

2008-01-28 Thread Brad King
Andreas Pakulat wrote: Ok, I'll inform kde-buildsystem as this will probably need some time to be fixed... Thanks. Hopefully they can get it in a 4.0.1 patch release or something. The linking implementation is going through an overhaul so there have been more changes since your original post

[CMake] Invoking ant (clean)

2008-01-28 Thread Chen Levy
Hello, List. I am setting up a build system based on CMake, that replaces the current build system. However some of the sources are already build with Apache ant, that works perfectly fine with the existing build.xml files. I wish to invoke ant from the generated Makefiles. I can do that with:

[CMake] Install a certain target

2008-01-28 Thread Salvatore Iovene
Hi, I have a project with several libraries and dependencies. Let's say libA, libB and libC where libA depends on libB, which depends on libC. If I just want to build libB (and libC too of course), I know I can just do "make B". But if I do "make install" also A will be built. Is there a way to c

Re: [CMake] cmake cvs breaks kde4 builds

2008-01-28 Thread Andreas Pakulat
On 27.01.08 20:40:05, Brad King wrote: > Andreas Pakulat wrote: >> Also I noticed that the linker line doesn't contain an option that gives >> gcc the kde4 library dir to search for kde libs. This is another thing >> which broke things for me here, i.e. ld complains that -lsolid cannot be >> found

Re: [CMake] cmake cvs breaks kde4 builds

2008-01-28 Thread Andreas Pakulat
On 27.01.08 20:30:34, Brad King wrote: > If something is using the export_library_dependencies file then there must > be a project outside kdelibs involved. Are you using the same version of > CMake for both trees? I thought I did, but apparently I didn't. At least I can't reproduce this part a