Re: [CMake] Superbuild subprojects and find_package()

2013-04-17 Thread Andreas Pakulat
Hi, On Thu, Apr 18, 2013 at 5:38 AM, John Gallagher < johnkgallagher+cm...@gmail.com> wrote: > Hello all, > > Some Googling has led me to questions that have been asked that are > similar to this one but I haven't seen a definitive answer. I'm trying to > set up a CMake "superbuild" where there

Re: [CMake] Superbuild subprojects and find_package()

2013-04-17 Thread Petr Kmoch
Hi John, the primary tool for superbuilds in CMake's arsenal is ExternalProject_Add from module ExternalProject. I don't have much experience with it, but you can read its docs to see if it could help you. Petr On Thu, Apr 18, 2013 at 5:38 AM, John Gallagher < johnkgallagher+cm...@gmail.com> wr

[CMake] Superbuild subprojects and find_package()

2013-04-17 Thread John Gallagher
Hello all, Some Googling has led me to questions that have been asked that are similar to this one but I haven't seen a definitive answer. I'm trying to set up a CMake "superbuild" where there are dependencies between the subprojects, and some of the subprojects use find_package() to import target

Re: [CMake] copy_if_different on build

2013-04-17 Thread Skippy VonDrake
> believe what you want is: > > add_custom_command( > OUTPUT "${output}" > DEPENDS "${input}" > COMMAND ${CMAKE_COMMAND} -E copy > "${input}" "${output}" > > ...which is roughly equivalent to a Makefile rule like: > > output: input > cp input output > > IOW, the file "${o

Re: [CMake] Cpack generated RPM and changed binary file size in 2.8.10

2013-04-17 Thread hce
Eric Noulard wrote > 2013/4/17 jupiter < > jupiter.hce@ > >: > > Could you check the size of the executable which gets into the RPM > it should be located in: > > /_CPack_Packages/ > > /RPM/ > > / > > When CPackRPM runs you get a message like: > > CPackRPM: Will use GENERATED spec file:

Re: [CMake] Cpack generated RPM and changed binary file size in 2.8.10

2013-04-17 Thread Eric Noulard
2013/4/17 jupiter : > Hi, > > I have a wired situation, I have a binary file (ELF 64-bit LSB > executable, x86-64, version 1 (SYSV), dynamically linked (uses shared > libs), for GNU/Linux 2.6.18, stripped) in bin directory, I then I run > "cpack -G RPM" to generate an RPM package. After install the

[CMake] Cpack generated RPM and changed binary file size in 2.8.10

2013-04-17 Thread jupiter
Hi, I have a wired situation, I have a binary file (ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped) in bin directory, I then I run "cpack -G RPM" to generate an RPM package. After install the RPM package in another machine

Re: [CMake] Regression in INCLUDE_DIRECTORIES command between cmake 2.8.7 and 2.8.8?

2013-04-17 Thread Marcel Loose
Hi David, I filed a bug (14094) and attached a patch that solves it. Cheers, Marcel. On 16/04/13 15:32, David Cole wrote: I guess you could file a bug/request to de-duplicate in the FindCUDA cmake code. Anybody who reads the property via get_property (or get_target_property or get_directory