Re: [CMake] CPack and PackageMaker

2015-12-11 Thread clinton
If you are interested, attached is some code I started a couple years ago but never finished, nor did I do much testing. Perhaps that'll help, or maybe you'll find a better way. Clint - On Dec 11, 2015, at 9:50 AM, Robert Bielik robert.bie...@dirac.se wrote: > Dear Attila, > > Ok, been str

Re: [CMake] Adding all object files as target

2015-12-11 Thread Nils Gladitz
On 11.12.2015 20:27, Sachin Gaikwad wrote: In GNU make, I can easily do this: "make foo.o" if I have foo.cc file to build and this will only compile foo.cc and create foo.o. This behavior is default one i.e. all object files are added as targets in Makefile. How do I get same behavior with

[CMake] Adding all object files as target

2015-12-11 Thread Sachin Gaikwad
Hi all, In GNU make, I can easily do this: "make foo.o" if I have foo.cc file to build and this will only compile foo.cc and create foo.o. This behavior is default one i.e. all object files are added as targets in Makefile. How do I get same behavior with cmake? Sachin -- Powered by www.kitwar

Re: [CMake] CPack and PackageMaker

2015-12-11 Thread robert . bielik
Dear Clint, Thank you! Will certainly start with that as a base :) Regards /R -- Ursprungligt meddelande-- Från: Datum: fre, 11 dec 2015 20:12 Till: Robert Bielik; Kopia: Attila Krasznahorkay;cmake; Ämne:Re: [CMake] CPack and PackageMaker If you are interested, attached is some code I

Re: [CMake] Parallel jobs failed for cmake

2015-12-11 Thread Bill Hoffman
On 12/11/2015 7:24 AM, Igor Sobinov wrote: Hello Bill, yes, make release is a custom command but that's not important. I do the following: # cd /home/igor/build_root/release_target # make release -j5 Yes, it is important, it is the reason it is not working. The custom command needs to use $(MA

Re: [CMake] Visual Studio 10 and wxWidgets

2015-12-11 Thread Mauro Ziliani
I miss some lines. This is that works On Fri, Dec 11, 2015 at 7:06 PM, Mauro Ziliani wrote: > Hi all. > I solved my problem with a custom script. > > I attach it to this message. > The script is very very poor, but for my purpouse it works. > > The script should be simply included > > MZ > > On

Re: [CMake] Visual Studio 10 and wxWidgets

2015-12-11 Thread Mauro Ziliani
Hi all. I solved my problem with a custom script. I attach it to this message. The script is very very poor, but for my purpouse it works. The script should be simply included MZ On Thu, Dec 10, 2015 at 4:23 PM, Mauro Ziliani wrote: > Hi all. > I'm in trouble with wxWidgets 3 and Visual Studi

Re: [CMake] CPack and PackageMaker

2015-12-11 Thread Robert Bielik
Dear Attila, Ok, been struggling getting an installation package to work with the pkgbuild/productbild tools, so I think I got the gist of what needs to be done, at least to get something going :) Regards /R Den 2015-12-11 kl. 17:47, skrev Attila Krasznahorkay: Hi Robert, I'm afraid that t

Re: [CMake] CPack and PackageMaker

2015-12-11 Thread Attila Krasznahorkay
Hi Robert, I'm afraid that the sad situation is that nobody has done this yet, or is working on it at the moment. I'm absolutely sure that if you can help with this by any amount, that will be most welcome by the CMake developers. It will certainly be most welcome by me, as I've been disappoin

Re: [CMake] CPack and PackageMaker

2015-12-11 Thread Robert Bielik
Really ? No one ? :) So it's ok to go ahead and start create a new one ? ;) Rgds, /R Den 2015-12-09 kl. 16:56, skrev Robert Bielik: Mac OSX: Since PackageMaker has been deprecated by Apple, the new tools to use are pkgbuild [1] and productbuild [2]. Simple question: Is there any work being

[CMake] Build-time override? (was Re: ExternalProject_Add and inheritance)

2015-12-11 Thread Christopher Sean Morrison
On Dec 11, 2015, at 2:44 AM, CHEVRIER, Marc wrote: > With CMake, you can control compilation and link flags with the following > environment variables: > CC: specify C compiler > CFLAGS: C compiler flags > CXX: specify C++ compiler > CXXFLAGS: C++ compiler flags > LDFLAGS: linker flags > And to

Re: [CMake] Figuring out in a generator expression whether a name is a target

2015-12-11 Thread Attila Krasznahorkay
Hi, Just to let people know how I solved it in the end... After wondering for a little while, I realised that the following should actually work more robustly: # Get the interface directories of the linked libraries: if( ARG_LINK_LIBRARIES ) # First declare an interface library that

Re: [CMake] Parallel jobs failed for cmake

2015-12-11 Thread Igor Sobinov
Hello Bill, yes, make release is a custom command but that's not important. I do the following: # cd  /home/igor/build_root/release_target #  make release -j5 and again got an error make[4]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule. All Makefiles in  release_tar

[CMake] Figuring out in a generator expression whether a name is a target

2015-12-11 Thread Attila Krasznahorkay
Dear All, I'm trying to do something a bit more complicated, so please bear with me... In our project we use a special kind of source code generator. Called a "dictionary generator". (https://root.cern.ch/how/how-use-reflex) To simplify the life of our users a bit, we provide a helper function

Re: [CMake] ExternalProject_Add and inheritance

2015-12-11 Thread Cedric Doucet
Hello Marc, thank you very much for your answer! I am not sure to understand how to overcome my problem with these variables. I can explain my problem further. I have a toy example of the problem which contains: - a call to ExternalProject_Add to install boost and yaml-ccp (the latter depe

Re: [CMake] error while loading shared libraries: libLLAPI.so: cannot open shared object file: No such file or directory

2015-12-11 Thread Nikita Barawade
Hi Decker, Thank you for reply ! export LD_LIBRARY_PATH works but how to achieve by cmake or what are proper settings for RPATH? I tried settings from "Always full RPATH" at https://cmake.org/Wiki/CMake_RPATH_handling , but got same error. >From this link , if RPATH is not set then linker