Re: [CMake] Execution order

2010-09-17 Thread Michael Wild
On 17. Sep, 2010, at 16:49 , David Aldrich wrote: > Hi Michael > >> Ok, to clear things up: > >> I hope you get the idea. > > Thanks very much, I think I get it now! I have implemented an out-of-source > build tree for our project, as you suggested, and it is building fine. Good. > > I'm

Re: [CMake] Simclist library produces simclist.c.o, simclist.c.i, simclist.c.s ...

2010-09-17 Thread Michael Wild
On 17. Sep, 2010, at 16:50 , Eric Noulard wrote: > 2010/9/17 SC : >> David, Michael, >> >> Thank you for your help. [David, sorry for this double mailing to you] >> No, this is intentional, I suspect to avoid conflicts. There are people doing stuff like add_library(foo foo.c foo.

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Pere Mato Vila
Hi Brad, > This is why I was asking all those questions. I bet the library > has not been built with a proper SONAME field. You are completely right, the library I was using to import has no SONAME field. I know exactly what I am doing wrong. I did build a proper library with the SONAME set wi

Re: [CMake] How to determine which working copy is present?

2010-09-17 Thread norulez
Thanks, but could it be that FindGit.cmake isn't complete? Because i tried Git_WC_INFO and i get an Unknown CMake command error. Or is the command for git different? Best Regards Am 17.09.2010 um 17:50 schrieb Alexander Neundorf : > On Friday 17 September 2010, norulez wrote: >> Hello, >> >>

[CMake] SET (CPACK_PACKAGE_INSTALL_REGISTRY_KEY)

2010-09-17 Thread Nicky Perian
I have tried many variations to the HKEY_LOCAL_MACHINE setting and am unable to get a run through of Cpack. I know it must be something simple I am missing. I need help with this. I am on a windows 7 / 64bit machine. NSIS is unicode and installed in the 32 bit program files directory. Thanks,

Re: [CMake] Visual Studio 2010 Transition

2010-09-17 Thread Brian Davis
I also get: 2> nvcc Hâ∞(Ç=y░: nvcc cannot find a supported cl version. Only MSVC 8.0 and MSVC 9.0 are supported 2> CMake Error at CMakeFiles/gpuReconPlugin_generated_gpuPMatrixRecon.cu.obj.cmake:194 (message): 2>Error generating 2> C:/Users/bdavis5/Documents/QS/QS-NIH/source/branches/trunk/

Re: [CMake] CMake 2.8.2 with WindRiver diab compiler dcc.exe/dplus.exe on WinXP: CMake Error: Could not COPY_FILE. while detecting compiler ABI

2010-09-17 Thread Alexander Neundorf
On Friday 17 September 2010, Brad King wrote: > On 09/17/2010 03:35 AM, Molsen, Hannes wrote: > > In CMakeTestCCompiler.cmake I found a flag called > > "CMAKE_C_COMPILER_FORCED". > > This is meant to be set by cross compiling toolchain files that explicitly > set the compiler ABI information. It i

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Brad King
On 09/17/2010 01:06 PM, Brad King wrote: > In the case of an imported target it checks > for the IMPORTED_NO_SONAME property: [snip] > Try setting that for your imported target (to value "1"). It looks > like this property is missing from the documentation though! I'll > fix that. Documentation

[CMake] Visual Studio 2010 Transition

2010-09-17 Thread Brian Davis
I recently had to upgrade to vs 2010 to use NSight debugger for NVIDIA GPU degging and was using 2.8.0. This version would load all but my CUDA related projects the cpuReconPlugin and the gpuReconPlugin. These two libs are defined in the same directory and share common source (which has been prob

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Brad King
On 09/17/2010 12:31 PM, Pere Mato Vila wrote: > Thanks for your interest. In fact your questions made me think > in the direction that the problem must be in the way the > library libGaudiKernel.so was built or installed. In fact I > remembered that I have a soft link in the installation > path. T

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Pere Mato Vila
Hi Brad, Thanks for your interest. In fact your questions made me think in the direction that the problem must be in the way the library libGaudiKernel.so was built or installed. In fact I remembered that I have a soft link in the installation path. The directory /build/mato/GAUDI/GAUDI_v21

Re: [CMake] How to determine which working copy is present?

2010-09-17 Thread Alexander Neundorf
On Friday 17 September 2010, norulez wrote: > Hello, > > is there a way in cmake to determine if it is a svn or git working copy to > use the individual commands? > > Such as: > > If svn then FindPackage(Svn). > Else if git then FindPackage(Git)... something like the following should work: if(

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Brad King
Hi Pere, What platform are you using (uname -a)? Does it use ELF binaries? On 09/17/2010 11:24 AM, Pere Mato Vila wrote: > $ ldd libLHCbMathLib.so > > /build/mato/GAUDI/GAUDI_v21r10p1/InstallArea/x86_64-slc5-gcc43-opt/lib/libGaudiKernel.so > (0x2afdec07d000) >... > $ ldd > /

[CMake] How to determine which working copy is present?

2010-09-17 Thread norulez
Hello, is there a way in cmake to determine if it is a svn or git working copy to use the individual commands? Such as: If svn then FindPackage(Svn). Else if git then FindPackage(Git)... Thanks in advance Best Regards NoRulez ___ Powered by www.

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Pere Mato Vila
>> The problem I have is that when have already built and >> installed B I can not move anymore the location of the A. This >> is because the libraries created in B contains the absolute >> path to exported libraries in A. > > The binaries in B would at most contain RPATH entries to point at the

Re: [CMake] Simclist library produces simclist.c.o, simclist.c.i, simclist.c.s ...

2010-09-17 Thread Eric Noulard
2010/9/17 SC : > David, Michael, > > Thank you for your help. [David, sorry for this double mailing to you] > >> > No, this is intentional, I suspect to avoid conflicts. There are people >> > doing stuff like >> > add_library(foo foo.c foo.cpp foo.f) >> > Why is this a problem for you? > Right, I u

Re: [CMake] Execution order

2010-09-17 Thread David Aldrich
Hi Michael > Ok, to clear things up: > I hope you get the idea. Thanks very much, I think I get it now! I have implemented an out-of-source build tree for our project, as you suggested, and it is building fine. I'm wondering what my co-developers will think of it. It is usual for us to work

Re: [CMake] Simclist library produces simclist.c.o, simclist.c.i, simclist.c.s ...

2010-09-17 Thread SC
David, Michael, Thank you for your help. [David, sorry for this double mailing to you] > > No, this is intentional, I suspect to avoid conflicts. There are people > > doing stuff like > > add_library(foo foo.c foo.cpp foo.f) > > Why is this a problem for you? Right, I understand the point of view

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Brad King
On 09/17/2010 09:31 AM, Pere Mato Vila wrote: > The problem I have is that when have already built and > installed B I can not move anymore the location of the A. This > is because the libraries created in B contains the absolute > path to exported libraries in A. The binaries in B would at most c

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Ryan Pavlik
On Fri, Sep 17, 2010 at 7:43 AM, Brad King wrote: > On 09/17/2010 07:19 AM, Pere Mato Vila wrote: > > I am using the nice feature of exporting targets from one CMake > > project to another. This works really nicely since it avoids > > explicitly linking my executables and shared libraries with th

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Pere Mato Vila
Dear Brad, Thanks for the prompt reply, but still I do not understand. I agree that if I have a project A that is exporting targets of the install tree and a project B that is using project A, I can move the install tree of A and I can still continue to build project B because the properties

Re: [CMake] Execution order

2010-09-17 Thread Michael Wild
Ok, to clear things up: Source tree: here are all the source files (*.h, *.cpp, CMakeLists.txt, etc). It's the stuff you check into your version control system. Build tree (a.k.a binary tree): here go all the products (i.e. generated files, like CMakeCache.txt, cmake_install.cmake, *.o, librari

Re: [CMake] Execution order

2010-09-17 Thread David Aldrich
Hi Ryan Thanks for your reply. CMakeLists.txt always lives in the source directory I assume? If it does live with the source, is there anyway of moving the clutter of cmake_install.cmake, CMakeFiles etc. in the source directory? David From: Ryan Pavlik [mailto:rpav...@iastate.edu] Sent: 17 Sep

Re: [CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Brad King
On 09/17/2010 07:19 AM, Pere Mato Vila wrote: > I am using the nice feature of exporting targets from one CMake > project to another. This works really nicely since it avoids > explicitly linking my executables and shared libraries with the > dependent libraries of the imported library target. The

Re: [CMake] CMake 2.8.3-rc1 ready for testing!

2010-09-17 Thread Micha Renner
> http://public.kitware.com/Bug/view.php?id=3796 ) Oh thank you, that should be the next topic (long awaited) what I wanted to test. Now it has to wait. I didn't realize this correlation. > > > In the meantime, to get rid of the problem for now, turn the new > feature off. In the top le

Re: [CMake] CMake 2.8.2 with WindRiver diab compiler dcc.exe/dplus.exe on WinXP: CMake Error: Could not COPY_FILE. while detecting compiler ABI

2010-09-17 Thread Brad King
On 09/17/2010 03:35 AM, Molsen, Hannes wrote: > In CMakeTestCCompiler.cmake I found a flag called "CMAKE_C_COMPILER_FORCED". This is meant to be set by cross compiling toolchain files that explicitly set the compiler ABI information. It is not set by --debug-trycompile. > So I still want to get

Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

2010-09-17 Thread Conor Downey
Hi, That didnt make any difference. I am still getting the same error. There seems to be some permission problems. Ryan mentioned that it looked like either Cmake or VC++ had ran as administrators but no longer do. Im not sure how to check that. But i did as he said and deleted the build directory

Re: [CMake] CMake 2.8.3-rc1 ready for testing!

2010-09-17 Thread David Cole
On Fri, Sep 17, 2010 at 6:51 AM, David Cole wrote: > > > On Fri, Sep 17, 2010 at 1:01 AM, Micha Renner wrote: > >> I get the message "CMakePredefinedTarget not available" and then VS >> message: "Cannot load CMakePredefinedTarget project". >> >> What does this mean for the work with CMake and VS2

Re: [CMake] Execution order

2010-09-17 Thread Ryan Pavlik
Your build system would be independent where the output files are: the user can choose whatever build directory they want, and not be limited to _gnuDebug and _gnuRelease. (If they so chose, they could create each of those and configure a build into them, but they are just as likely to not do so.

Re: [CMake] Execution order

2010-09-17 Thread David Aldrich
Hi Chris > No, you shouldn't have to, unless you're using in-source builds > which is very strongly deprecated. Once you've gotten used to > out-of-source builds you'll never want to go back. Ok, I'm trying to think of how this would work for us. The source for each of our libraries is in a s

[CMake] How to avoid the explicit library location when linking with imported library targets

2010-09-17 Thread Pere Mato Vila
Hi, I am using the nice feature of exporting targets from one CMake project to another. This works really nicely since it avoids explicitly linking my executables and shared libraries with the dependent libraries of the imported library target. The problem is that imported library is linked

Re: [CMake] Simclist library produces simclist.c.o, simclist.c.i, simclist.c.s ...

2010-09-17 Thread David Cole
On Fri, Sep 17, 2010 at 4:12 AM, Michael Wild wrote: > On 17. Sep, 2010, at 9:41 , SC wrote: > > > Hi there, > > > > I recently upgraded my dev system from Ubuntu 8.04 to Ubuntu 10.4. This > made me change from Cmake 2.4-patch7 to > > Cmake 2.8.0. > > > > Since then, generating a makefile with "C

Re: [CMake] CMake 2.8.3-rc1 ready for testing!

2010-09-17 Thread David Cole
On Fri, Sep 17, 2010 at 1:01 AM, Micha Renner wrote: > I get the message "CMakePredefinedTarget not available" and then VS > message: "Cannot load CMakePredefinedTarget project". > > What does this mean for the work with CMake and VS2010 Express? > That means that I made a mistake with this commi

Re: [CMake] Execution order

2010-09-17 Thread Chris Hillery
On Fri, Sep 17, 2010 at 3:22 AM, David Aldrich wrote: > Hi Chris > > > > Thanks for your reply. > > > > >The message() and file(REMOVE) commands will be executed when you run > CMake. > > >The command to generate the .cpp file won't be executed until you run > make. > > > > I don’t think I have ‘

Re: [CMake] Execution order

2010-09-17 Thread Michael Hertling
On 09/17/2010 12:04 PM, Chris Hillery wrote: > The message() and file(REMOVE) commands will be executed when you run CMake. > The command to generate the .cpp file won't be executed until you run make. > That's why it's still around after you're done. > > You can't really do exactly what you want

Re: [CMake] Execution order

2010-09-17 Thread David Aldrich
Hi Chris Thanks for your reply. >The message() and file(REMOVE) commands will be executed when you run CMake. >The command to generate the .cpp file won't be executed until you run make. I don't think I have 'got' CMake yet. I am now definitely confused! During normal development, i.e. when the

Re: [CMake] Execution order

2010-09-17 Thread Chris Hillery
The message() and file(REMOVE) commands will be executed when you run CMake. The command to generate the .cpp file won't be executed until you run make. That's why it's still around after you're done. You can't really do exactly what you want here very easily; you'd need to have a separate custom

[CMake] Execution order

2010-09-17 Thread David Aldrich
Hi I want to generate a source file 'SourceFileInfo.cpp', then build a library and then delete the generated file. So I wrote: add_custom_command ( OUTPUT SourceFileInfo.cpp COMMAND ../VersionInfo/_gnuRelease/versionInfo . KERNEL DEPENDS ${SRCS} COMMENT "Generating SourceFileInfo.cpp"

Re: [CMake] Bootstrapping a compiler with cmake - ideas?

2010-09-17 Thread Chris Hillery
Is the Opal compiler itself written in Opal? I guess it must be, or else you wouldn't be having this problem. We have a similar problem with the Zorba XQuery engine. In that case, while Zorba is coded in C++, some of the C++ files are generated from XQueries, which leads to a similar chicken/egg p

Re: [CMake] Question regarding project structure

2010-09-17 Thread David Aldrich
Hi Michael > ADD_EXECUTABLE(exe "") Thanks, that worked nicely. David ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ

Re: [CMake] Simclist library produces simclist.c.o, simclist.c.i, simclist.c.s ...

2010-09-17 Thread Michael Wild
On 17. Sep, 2010, at 9:41 , SC wrote: > Hi there, > > I recently upgraded my dev system from Ubuntu 8.04 to Ubuntu 10.4. This made > me change from Cmake 2.4-patch7 to > Cmake 2.8.0. > > Since then, generating a makefile with "Cmake ." in the Simclist library > source directory produces the f

[CMake] Simclist library produces simclist.c.o, simclist.c.i, simclist.c.s ...

2010-09-17 Thread SC
Hi there, I recently upgraded my dev system from Ubuntu 8.04 to Ubuntu 10.4. This made me change from Cmake 2.4-patch7 to Cmake 2.8.0. Since then, generating a makefile with "Cmake ." in the Simclist library source directory produces the following : #==

Re: [CMake] Quick question about set and substitutions

2010-09-17 Thread Michael Wild
So, you want to embed the "basename" of the output file in the target, right? In that case you should be aware of the fact that variables/properties like CMAKE__POSTFIX can change your name and with mult-config generators you don't know what is at configure-time. AFAIK there is currently no re

Re: [CMake] CMake 2.8.2 with WindRiver diab compiler dcc.exe/dplus.exe on WinXP: CMake Error: Could not COPY_FILE. while detecting compiler ABI

2010-09-17 Thread Molsen, Hannes
Hi all, if this is of any help or interest: I added the option --debug-output, which does not solve the problem, but gives at least some additional information and a nicer workaround: === CMake Output : snip === -- Detecting C compiler ABI info Called from: [2] C:/Program Files/CMake 2.

[CMake] Bootstrapping a compiler with cmake - ideas?

2010-09-17 Thread Christoph Höger
Hi all, we are working on a port of our old, handcrafted build system for OPAL (http://user.cs.tu-berlin.de/~opal/opal-language.html) to cmake. The Opal compiler produces C-Code, so in theory bootstrapping that beast on any machine should be easy as long as the C-code is shipped in a distribution