[CMake] CMake cross-compilation best practices

2009-11-29 Thread Romain CHANU
Hi, If I need to compile a library on both Linux and Windows, the best CMake practice would be to write toolchain files for Linux and Windows (cf. http://www.cmake.org/Wiki/CMake_Cross_Compiling) Is that correct? Cheers, Romain Chanu ___ Powered by ww

Re: [CMake] "portable" linux binaries?

2009-11-29 Thread j s
Hello, I am running: cmake version 2.4-patch 7 on Ubuntu 8.04 and I can't get this option to work, whether it is in CMakeLists.txt or on the command line. rm CMakeCache.txt; cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE -DCMAKE_INSTALL_RPATH='$ORIGIN/../lib/shared' ../src/; grep RPATH CMakeCache.

Re: [CMake] Suggestion: CMake should support custom commands that can vary by configuration.

2009-11-29 Thread James Bigler
On Fri, Nov 27, 2009 at 5:28 PM, Steven Wilson < steven.wesley.wil...@gmail.com> wrote: > The current CMake 2.8.0 system does not allow custom commands created with > add_custom_command() to do different things based on the build > configuration. > > I propose adding a new keyword to the add_custo

[CMake] Mediawiki CMake syntax highlighting

2009-11-29 Thread David Doria
I was wondering if there was any talk of adding cmake script support to mediawiki's >source lang="X"> capability. It looks terrible if you just use "text": http://www.cmake.org/Wiki/Paraview_Make_building_Paraview_plugin_optional And to make it look nice, you have to drastically alter the code (m

Re: [CMake] Version 2.8 affects exception handling?

2009-11-29 Thread Bill Hoffman
Bill Spotz wrote: when the epetra dynamic library gets linked under the new cmake and not the old. This could be problematic because it is using the compiler /usr/bin/c++, which on my system is version 4.0.1 (although the gfortran compiler is version 4.4.1). So I have been able to confirm t

Re: [CMake] Conditional subdirectory build

2009-11-29 Thread David Cole
if(BUILD_PARAVIEW_PLUGIN==ON) should just be if(BUILD_PARAVIEW_PLUGIN) cmake --help-command IF will explain... There is no "==" but there are EQUAL and STREQUAL operators. In the case of a boolean option variable, the syntax "if(variable)" if preferred. HTH, David On Sun, Nov 29, 2009 at 9:

[CMake] Conditional subdirectory build

2009-11-29 Thread David Doria
I am packaging a VTK filter. I am trying to give the user the option of additionally compiling the Paraview plugin for the filter (in the .../plugin directory). I wanted to make a BUILD_PARAVIEW_PLUGIN variable that they could set to "ON" or "OFF". If it is set to "ON", CMake should proceed with pr