Re: [CMake] CPack: setting multiple RPM pre/post (un)install scripts

2016-05-30 Thread Thomas Teo
Hi Domen, Thanks for that confirmation. While rolling it into the main postinstall script might make sense, I would need to run a different script (or not at all) based on the CMake option flags the user had selected. Thus I'd need to generate multiple versions of the script depending on what

Re: [CMake] linking OBJECT libraries : Argument list too long

2016-05-30 Thread Biddiscombe, John A.
Magnus > Wouldn't a better solution be to use an options file, something like ld's @file[1]? < Yes. That solution would require me to make some probably significant changes to the cmake internals though, and I hoped to find out where the extra path / directories were coming from and shorten th

[CMake] How to hundle gcc link options(like whole-archive, --allow-multiple-definition) in CMake?

2016-05-30 Thread Chaos Zhang
Hi, all, Thanks for taking your time to review my email. I have a demo project and it's structure like as below: top_dir CMakeLists.txt sub_dir1 CMakeLists.txt sub_dir2 CMakeLists.txt top_dir/sub_dir1/CMakeLists.txt used to build `lib1` by using `add_library(lib1 ...)

[CMake] Library deduplication and imported target dependencies

2016-05-30 Thread Stefano Bonicatti
Hello there. First of all is there any documentation about how CMake handles deduplication of libraries when linking (so to avoid duplicate libraries to be linked unnecessarily)? Now to my issue: I have a library libA which has to link to libB, libC, libD and libE. libA is the only one internal to