[CMake] Missing DLLs with CPack 2.8 on MSVC 10 beta 2

2009-11-24 Thread Frank Stappers
Hello, Currently we are experimenting with CMake 2.8 and MSVC 10 (beta 2). I belief that with CPack and MSVC 9.0 packed the DLL-files that resided in the redist directory (C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT) were packed together with the compiled

Re: [CMake] Missing DLLs with CPack 2.8 on MSVC 10 beta 2

2009-11-24 Thread Bill Hoffman
Frank Stappers wrote: Hello, Currently we are experimenting with CMake 2.8 and MSVC 10 (beta 2). I belief that with CPack and MSVC 9.0 packed the DLL-files that resided in the redist directory (C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT) were packed together

[CMake] Mac and Win32 bundling

2009-11-24 Thread Filip Wänström
Hi my name is Filip Wänström and I'm new to this list. I have recently(a few months) started to use CMake for all my building. I find that it works well in most cases and probably is the best alternative on the market. Anyway, I like to stay cross platform for my projects so I personally develop

[CMake] enable_language( ... OPTIONAL) causes error or second cmake run

2009-11-24 Thread Marcel Loose
Hi all, I've been experimenting a bit with enable_language() and stumbled upon what I think is a bug. I have wanted to know how to properly handle a missing Fortran compiler. So, on a system without a working Fortran compiler I ran cmake twice. In the first cmake run, the Fortran compiler is

[CMake] Eclipse CDT 4.0 + CMake (2.8.0)

2009-11-24 Thread Peter Kluger
Hi to all, i recently start using eclipse in our project and am very happy how it works with the CMake Eclipse CDT 4.0 generator. Unfortunately, every time i recall cmake it writes the .project (+.cproject) file for eclipse and overwrites my personal settings within that file prior set, like

[CMake] CMake / UNC and long path

2009-11-24 Thread Mathieu Malaterre
Hi there, Does anyone knows how to create a directory on Win32 system ? I tried: http://gdcm.svn.sourceforge.net/svnroot/gdcm/Sandbox/CMakeBug/11/CMakeLists.txt But it fails on my WinXP 32bits system. Suggestion *very* welcome Thanks, -- Mathieu

Re: [CMake] Eclipse CDT 4.0 + CMake (2.8.0)

2009-11-24 Thread Michael Jackson
You may want to try option #2 from the following page: http://www.cmake.org/Wiki/CMake:Eclipse_UNIX_Tutorial This would solve your problem as the .project and .cproject files are never actually generated. It is up to you to generate those files. But this means that you can customize the

[CMake] problem about Fortran and C mixing

2009-11-24 Thread 董理
Hi all, I have decided to mix Fortran with C, due to a library that only has C interface. Here is the scienario: suppose there are several programs, file1.f90, file2.f90, file3.c and a C library lib. 1. file1.f90 calls file2.f90 to generate a executable 2. file2.f90 calls file3.c to generate a

Re: [CMake] CMake / UNC and long path

2009-11-24 Thread Tyler Roscoe
On Tue, Nov 24, 2009 at 04:15:18PM +0100, Mathieu Malaterre wrote: Does anyone knows how to create a directory on Win32 system ? I tried: http://gdcm.svn.sourceforge.net/svnroot/gdcm/Sandbox/CMakeBug/11/CMakeLists.txt But it fails on my WinXP 32bits system. Use execute_process() or a

Re: [CMake] set_target_properties - compile flags problem II

2009-11-24 Thread Tyler Roscoe
On Sat, Nov 21, 2009 at 12:08:38PM +0100, Sören Freudiger wrote: Okay, after using google again I figured out that unlike LINK_FLAGS_CONFIG the COMPILE_FLAG property does not support COMPILE_FLAG_CONFIG. Looks like Philip suggested a patch from the bug tracker. Did you try it out? Changing

Re: [CMake] CMake / UNC and long path

2009-11-24 Thread Mathieu Malaterre
On Tue, Nov 24, 2009 at 4:22 PM, Tyler Roscoe ty...@cryptio.net wrote: On Tue, Nov 24, 2009 at 04:15:18PM +0100, Mathieu Malaterre wrote:   Does anyone knows how to create a directory on Win32 system ? I tried: http://gdcm.svn.sourceforge.net/svnroot/gdcm/Sandbox/CMakeBug/11/CMakeLists.txt  

[CMake] setting CMAKE_BINARY_DIR has no effect

2009-11-24 Thread Voisard, Shane S CIV NSWCDD, K54
command line cmake (2.6.4) is always putting the generated build files under the current working directory from which cmake is executed, regardless of the value of CMAKE_BINARY_DIR. I have this directory tree; the names are symbolic, not absolute: parent (current working dir) | |

Re: [CMake] setting CMAKE_BINARY_DIR has no effect

2009-11-24 Thread David Cole
You can't set any of those variables. They are all determined by CMake. The CMAKE_BINARY_DIR is the current working directory when you run cmake or ccmake for the very first time. Or, if you are running cmake-gui, you can set it to a value before the first configure. After that, it is set in

[CMake] Cmake support for Csharp?

2009-11-24 Thread Sarbak, Joseph
Hello, any advice would be greatly appreciated. This question appears to have asked in the past. Has there been any new development in support for csharp? I have a project that is a mix of C, C++, and Csharp, and I would like to manage all builds from one tool: cmake. Your answers would

Re: [CMake] Cmake support for Csharp?

2009-11-24 Thread David Cole
There has not been anything done in CMake itself related to C# development. I'm biased against putting in partial support for it without full blown generated *.csproj files that support resources, .NET strong name signatures, and everything, so it's a significant chunk of dev work. However, CMake

Re: [CMake] portable linux binaries?

2009-11-24 Thread Alexander Neundorf
On Tuesday 24 November 2009, j s wrote: The most interesting thing is to be able to set the relative RPATH. Is there a way to do this for a normal build, and not the install target? I never use the install target for my project, but I'd like to be able to set the relative path to my own copy

Re: [CMake] enable_language( ... OPTIONAL) causes error or second cmake run

2009-11-24 Thread Alexander Neundorf
On Tuesday 24 November 2009, Marcel Loose wrote: Hi all, I've been experimenting a bit with enable_language() and stumbled upon what I think is a bug. Yes: http://public.kitware.com/Bug/view.php?id=9220 It's not trivial to make it work. Alex ___

Re: [CMake] Parallel builds and Eclipse CDT4 generator

2009-11-24 Thread Alexander Neundorf
On Thursday 12 March 2009, Michael Jackson wrote: I think that is a CDT 5.x thing, I think. I have it on my CDT 5.x installation but didn't remember having it on CDT 4. If there is a way to set that checkbox during the CDT project file generation then CDT will figure out how many compile

Re: [CMake] Eclipse CDT 4.0 + CMake (2.8.0)

2009-11-24 Thread Alexander Neundorf
On Tuesday 24 November 2009, Peter Kluger wrote: Hi to all, i recently start using eclipse in our project and am very happy how it works with the CMake Eclipse CDT 4.0 generator. Unfortunately, every time i recall cmake it writes the .project (+.cproject) file for eclipse and overwrites my

[CMake] Getting cmake to apply patches

2009-11-24 Thread Hugh Sorby
So I am trying to get CMake to apply patches to third party source. First off can someone confirm (, I'm hoping I haven't missed the obvoius) that there isn't an inbuilt command to apply unified diffs. Secondly can anyone tell me how to stop CMake consuming the -i in following command:

[CMake] search default paths BEFORE custom paths

2009-11-24 Thread Kenneth Riddile
I'm using CMAKE_PREFIX_PATH to specify some custom search paths.  How can I make cmake search its default paths BEFORE searching my custom paths?___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] search default paths BEFORE custom paths

2009-11-24 Thread Alan W. Irwin
On 2009-11-24 13:04-0800 Kenneth Riddile wrote: I'm using CMAKE_PREFIX_PATH to specify some custom search paths.  How can I make cmake search its default paths BEFORE searching my custom paths? Call FIND twice. The first time use NO_DEFAULT_PATH. Alan __ Alan W.

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Eric Noulard
2009/11/24 Hugh Sorby h.so...@auckland.ac.nz: So I am trying to get CMake to apply patches to third party source. First off can someone confirm (, I'm hoping I haven't missed the obvoius) that there isn't an inbuilt command to apply unified diffs. Secondly can anyone tell me how to stop CMake

Re: [CMake] portable linux binaries?

2009-11-24 Thread j s
Thanks, that should work. Regards, Juan 2009/11/24 Alexander Neundorf a.neundorf-w...@gmx.net On Tuesday 24 November 2009, j s wrote: The most interesting thing is to be able to set the relative RPATH. Is there a way to do this for a normal build, and not the install target? I never

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Hugh Sorby
Sorry about that missed a chdir should be cmake -E chdir netgen patch -p0 -i netgen-4.9.11.patch from following the documentation: cmake -E chdir dir cmd [args]... Eric Noulard wrote: 2009/11/24 Hugh Sorby h.so...@auckland.ac.nz: So I am trying to get CMake to apply patches to third

[CMake] non-set-able variables

2009-11-24 Thread Voisard, Shane S CIV NSWCDD, K54
I made my parent script cd into my binary_dir, execute (the command-line) cmake from there and all is well . except for another set command (in the top-level CMakeLists.txt) that is no longer effective: set (CMAKE_CONFIGURATION_TYPES Release CACHE STRING FORCE) I tried this alternative,

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Alan W. Irwin
On 2009-11-25 11:00+1200 Hugh Sorby wrote: Sorry about that missed a chdir should be cmake -E chdir netgen patch -p0 -i netgen-4.9.11.patch I confirm that you have found a bug (at least with Debian stable Linux and a bootstrapped cmake version 2.8.0-rc6). Here is a simple demonstration with

[CMake] cmake HEAD: cpack rpm generator seems broken on openSuse 11.2

2009-11-24 Thread W. Dobbe
I installed cmake CVS HEAD of 24-11-2009 because I need the post install script feature of issue 8988. When I create the most basic cmake project project: cmake_minimum_required(VERSION 2.8) project(rpmtest) add_executable(dummy src/main.cpp) install( TARGETS dummy RUNTIME DESTINATION bin )

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread David Cole
For now, another workaround would be to write a script that calls patch with the -i argument and then invoke the script with execute_process or a different cmake -E command line... On Tue, Nov 24, 2009 at 7:43 PM, Hugh Sorby h.so...@auckland.ac.nz wrote: Thanks Alan, I will attempt to: 1)

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Hugh Sorby
I found this http://www.cmake.org/Bug/view.php?id=6945 but didn't manage to reopen it so I submitted this bug report http://www.cmake.org/Bug/view.php?id=9965 ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Alan W. Irwin
On 2009-11-25 13:11+1200 Hugh Sorby wrote: I found this http://www.cmake.org/Bug/view.php?id=6945 but didn't manage to reopen it so I submitted this bug report http://www.cmake.org/Bug/view.php?id=9965 It is interesting that Bug 6945 was closed as fixed in CVS by Bill Hoffman more than a

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Hugh Sorby
Thanks David, Following your advice I did the following: SET( PATCH_BATCH_FILE patch_wrap.bat ) FILE( WRITE ${PATCH_BATCH_FILE} ${PATCH_EXECUTABLE} -p0 -i ${LIB_DIR}.patch ) EXECUTE_PROCESS( COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} ${PATCH_BATCH_FILE} RESULT_VARIABLE RESULT_PATCH )

Re: [CMake] Getting cmake to apply patches

2009-11-24 Thread Bill Hoffman
Alan W. Irwin wrote: On 2009-11-25 13:11+1200 Hugh Sorby wrote: I found this http://www.cmake.org/Bug/view.php?id=6945 but didn't manage to reopen it so I submitted this bug report http://www.cmake.org/Bug/view.php?id=9965 It is interesting that Bug 6945 was closed as fixed in CVS by

Re: [CMake] problem with add_custom command

2009-11-24 Thread Brian Davis
So I found this thread below and tried the command at the promp (Win7): cmake -E tar xvf CMake Error: Problem with tar_open(): No such file or directory CMake Error: Problem extracting tar: ${TARDIR}/mytar.tar cmake -E tar xvf openssl-0.9.8a.tar CMake Error: Problem with tar_open(): No such

Re: [CMake] cmake HEAD: cpack rpm generator seems broken on openSuse 11.2

2009-11-24 Thread Eric Noulard
2009/11/24 W. Dobbe winfried_...@xmsnet.nl: I installed cmake CVS HEAD of 24-11-2009 because I need the post install script feature of issue 8988. In your example you seems to be using CPACK_RPM_PACKAGE_REQUIRES and not CPACK_RPM_SPEC_POSTINSTALL When I create the most basic cmake project