[CMake] Creating two distinct packages w/ CPack from a single project

2017-10-16 Thread J. Paul Reed
Hey all, I have a (potentially?) odd situation: I need to generate multiple packages using CPack from the same CMake project. I'm aware of the component-based installers and methodology, but I don't believe that's what I want here: I want entirely different package names/versions/etc., containin

Re: [CMake] Help: erroneous '-ltbb' getting injected into link command implicitly

2017-10-16 Thread Chris Green
On 10/16/17 4:55 AM, Ben Morgan wrote: Hi Chris, Is “tbb” used as a target name and direct link anywhere? e.g. Ding ding! Found it late Friday, thanks: I was fooled by previous experience into thinking that CMake was translating an external package's dependency on TBB from the explicit full pa

Re: [CMake] Help: erroneous '-ltbb' getting injected into link command implicitly

2017-10-16 Thread Ben Morgan
Hi Chris, Is “tbb” used as a target name and direct link anywhere? e.g. add_library(tbb IMPORTED …) then somewhere else target_link_libraries(foo PUBLIC tbb) (you mentioned use of a config Cmake file)? One thing that bit me a while ago (but I don’t think it’s a CMake bug per se) is that if