Re: [CMake] string REGEX question

2009-11-20 Thread Steven Wilson
Never mind, I figured out the problem... Thanks, Steve On Fri, Nov 20, 2009 at 6:12 PM, Steven Wilson < steven.wesley.wil...@gmail.com> wrote: > I have the following string in a variable "C:\path\to\foo" > > I want to do something like the following: > > string(REGEX REPLACE "\\" "" OUTPUT_

Re: [CMake] CMAKE_GENERATOR question

2009-11-20 Thread Steven Wilson
Thanks! Is CMAKE_EXTRA_GENERATOR a documented variable? I couldn't find it at: http://www.cmake.org/cmake/help/cmake-2-8-docs.html Steve 2009/11/19 Alexander Neundorf > On Thursday 19 November 2009, Steven Wilson wrote: > > Why, in CMake 2.8.0, is the value of CMAKE_GENERATOR "Unix Makefiles"

[CMake] string REGEX question

2009-11-20 Thread Steven Wilson
I have the following string in a variable "C:\path\to\foo" I want to do something like the following: string(REGEX REPLACE "\\" "" OUTPUT_VAR ${INPUT_VAR}) where INPUT_VAR contains the original string. I want the result to be: C:\\path\\to\\foo I'm just not seeing how to make this regular

Re: [CMake] CDash Setup for HDF5

2009-11-20 Thread Michael Jackson
Ok, So I registered with my.cdash.org and created the HDF5 project. So now what? _ Mike Jackson mike.jack...@bluequartz.net On Nov 17, 2009, at 5:26 PM, David Cole wrote: Go to "http://my.cdash.org"; and click the "Star

[CMake] Cmake support for Csharp?

2009-11-20 Thread Sarbak, Joseph
Hello, 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 be much appreciated. Thank you. Joe Sarbak ___

Re: [CMake] CTEST_UPDATE command and deep file hierarchies in repository

2009-11-20 Thread Jan Wurster
Hi again, > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > Behalf Of Jan Wurster > Sent: Freitag, 20. November 2009 16:49 > To: cmake@cmake.org > Subject: [CMake] CTEST_UPDATE command and deep file hierarchies in > repository > I've had a look at the relevant ctest-code sec

Re: [CMake] pgf90 error

2009-11-20 Thread Arjen Markus
On 2009-11-20 16:11, John Vines (CISD/CIV) wrote: I am trying to compile a simple fortran "Hello World!" program with the Portland Group compilers (version 8.0) and am running in to a problems. I am using with CMake (ver 2.8.0-rc5). /opt/compiler/pgi/linux86-64/8.0/bin/pgf90 CMakeFil

Re: [CMake] pgf90 error

2009-11-20 Thread Brad King
John Vines (CISD/CIV) wrote: > pgf90-Error-Unknown switch: -rdynamic Due to some historic cruft this compiler is not supported on Linux right now. In "Modules/Platform/Linux.cmake" comment out the line SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic") This is on our TODO list for 2.8.x but

Re: [CMake] How to link Intel MKL

2009-11-20 Thread Bill Hoffman
董理 wrote: > Hi, all, > > My program (Fortran 90) uses the "trust region nonlinear least squares > problem" (dtrnlsp) subroutines, how can I setup cmake? > > There is a module that calls the dtrnlsp subroutines, and one main > program uses that module. > > I have wrote the following statement i

[CMake] CTEST_UPDATE command and deep file hierarchies in repository

2009-11-20 Thread Jan Wurster
Hi everybody, I've run into a small problem with automatic svn updates of a nightly build repository. The repository contains names longer as the 'traditional' 260 char windows MAX_PATH limit. From the FAQ of subversion: http://subversion.tigris.org/faq.html#long-paths I've had a loo

[CMake] How to link Intel MKL

2009-11-20 Thread 董理
Hi, all, My program (Fortran 90) uses the "trust region nonlinear least squares problem" (dtrnlsp) subroutines, how can I setup cmake? There is a module that calls the dtrnlsp subroutines, and one main program uses that module. I have wrote the following statement in the CMakeLists.txt with modu

[CMake] pgf90 error

2009-11-20 Thread John Vines (CISD/CIV)
I am trying to compile a simple fortran "Hello World!" program with the Portland Group compilers (version 8.0) and am running in to a problems. I am using with CMake (ver 2.8.0-rc5). My helloworld.f90 code: program HelloWorldF90 write(*,*) "Greeting, Hello World!" end program HelloWorld

Re: [CMake] Link and build to DLL under Windows with NMake

2009-11-20 Thread Michael Wild
Also make sure to use unique macro names for every library. Say you want to build two DLL's, foo and bar: // foo/foo.h #ifndef _foo_h #define _foo_h #ifdef WIN32 # ifdef foo_EXPORTS #define FOO_EXPORT __declspec(dllexport) # else #define FOO_EXPORT __declspec(dllimport) # endif #els

Re: [CMake] Link and build to DLL under Windows with NMake

2009-11-20 Thread Andrea Gualano
Thanks Micha, thanks Gerhard, that did the trick. Bye, Andrea -- Andrea Gualano ImaVis S.r.l. email: andrea.gual...@imavis.com ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htm

Re: [CMake] Link and build to DLL under Windows with NMake

2009-11-20 Thread ggrimm
Hello Andrea, the linker didn't create hello.lib, because you didn't export anything from hello.dll. Here's the usual way to do it: When compiling sources of a shared library , CMake will declare a preprocessor symbol _EXPORTS. You can use this preprocessor symbol to decide whether you want to

Re: [CMake] Link and build to DLL under Windows with NMake

2009-11-20 Thread Micha Renner
Your library symbols are not getting exported. Please, look http://www.cmake.org/Wiki/BuildingWinDLL Greeting Micha Am Freitag, den 20.11.2009, 13:34 +0100 schrieb Andrea Gualano: > Hello, > I am trying to build a .dll file under Windows and then build some test > executable just to be sure tha

[CMake] Link and build to DLL under Windows with NMake

2009-11-20 Thread Andrea Gualano
Hello, I am trying to build a .dll file under Windows and then build some test executable just to be sure that it works correctly. The source is C++, and I am trying to link to a class defined inside the shared library. This is probably very basic, but I know very little about Windows development