Re: [CMake] running executables linked to a dll in the build directory

2008-12-15 Thread Alexander Neundorf
On Monday 15 December 2008, Ladanyi, Akos wrote: > Hi, > > My source tree consists of a library, and some test programs for the > library. The library is built as a dll, and the test programs link > against the import library of this dll. When I try to run the test > programs (in the build tree), t

Re: [CMake] running executables linked to a dll in the build directory

2008-12-15 Thread Eric Noulard
2008/12/15 Ladanyi, Akos : > Hi, > > My source tree consists of a library, and some test programs for the > library. The library is built as a dll, and the test programs link > against the import library of this dll. When I try to run the test > programs (in the build tree), they fail, because they

[CMake] running executables linked to a dll in the build directory

2008-12-15 Thread Ladanyi, Akos
Hi, My source tree consists of a library, and some test programs for the library. The library is built as a dll, and the test programs link against the import library of this dll. When I try to run the test programs (in the build tree), they fail, because they can not find the dll. What is the pro

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-15 Thread Michael Wild
On 15. Dec, 2008, at 16:46, Werner Smekal wrote: Hi, On 15.12.2008, at 16:39, Hendrik Sattler wrote: Michael Wild schrieb: if (NOT WIN32) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package( PkgConfig REQUIRED ) pkg_ch

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-15 Thread Bill Hoffman
tormod.ravnanger.lan...@dnv.com wrote: -Original Message- From: Bill Hoffman [mailto:bill.hoff...@kitware.com] Sent: 15. desember 2008 15:29 To: Landet, Tormod Ravnanger Cc: cmake@cmake.org Subject: Re: [CMake] Problems with Intel Fortran 11 on Windows XP Run cmake --debug-trycompile,

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-15 Thread Tormod.Ravnanger.Landet
>-Original Message- >From: Bill Hoffman [mailto:bill.hoff...@kitware.com] >Sent: 15. desember 2008 15:29 >To: Landet, Tormod Ravnanger >Cc: cmake@cmake.org >Subject: Re: [CMake] Problems with Intel Fortran 11 on Windows XP > >Run cmake --debug-trycompile, that will leave the temporary file

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-15 Thread Werner Smekal
Hi, On 15.12.2008, at 16:39, Hendrik Sattler wrote: Michael Wild schrieb: if (NOT WIN32) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package( PkgConfig REQUIRED ) pkg_check_modules( _sigcxx2 REQUIRED sigc++-2.0 ) end

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-15 Thread Hendrik Sattler
Michael Wild schrieb: > if (NOT WIN32) > # use pkg-config to get the directories and then use these values > # in the FIND_PATH() and FIND_LIBRARY() calls > find_package( PkgConfig REQUIRED ) > pkg_check_modules( _sigcxx2 REQUIRED sigc++-2.0 ) > endif (NOT WIN32) pkgconfig can also be use

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-15 Thread Bill Hoffman
tormod.ravnanger.lan...@dnv.com wrote: Compiling by hand works perfectly. MinGW and NMake Makefiles are generated and compile the program as they should. Only the Visual Studio generators malfunction. I think it is due to a problem with the CMake generated .sln files. See another mail on in the

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-15 Thread Arjen Markus
>> Hi, >> > > The output with VS2008 is: > -- > H:\Work\test_cmake_fortran_windows\build>cmake .. -G "Visual Studio 9 > 2008" > -- Check for working Fortran compiler: C:/Program > Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe > -- Check

[CMake] problem with change of compiler

2008-12-15 Thread Sowa, Bartlomiej (NSN - PL/Wroclaw)
Hello, I have a project, that actually consists of several modules that have dependencies between them. I want to add CTC (code coverage analysis) support, and in order to do this I would need, similar than with purify, to change compiler binary, but I need this to be done just for directly depen

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-15 Thread Tormod.Ravnanger.Landet
>-Original Message- >From: Arjen Markus [mailto:arjen.mar...@wldelft.nl] >Sent: 15. desember 2008 10:37 >To: Landet, Tormod Ravnanger >Cc: cmake@cmake.org >Subject: Re: [CMake] Problems with Intel Fortran 11 on Windows XP > >This looks suspiciously like the kind of errors you get if the >e

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-15 Thread Tormod.Ravnanger.Landet
>From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler >Am Friday 12 December 2008 12:41:47 schrieb tormod.ravnanger.lan...@dnv.com: >> The output with VS2008 is: > >Did you try the "NMake Makefiles" generator? It works just as well as the MinGW generator does

Re: [CMake] How can I write CMakeLists.txt to link a special library?

2008-12-15 Thread Michael Wild
On 14. Dec, 2008, at 5:41, Kermit Mei wrote: Werner Smekal wrote: Hi, Kermit Mei wrote: Hello, all. I used sigc++ library in my program, so I must compile my main.cc like this: c++ -Wall main.cc -o main -I/usr/include/sigc++-2.0 -I/usr/lib/sigc ++-2.0/include -lsigc-2.0 Then, how can