Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Dmitry Polyanitsa
: Tuesday, January 13, 2015 12:29 PM To: Robert Goulet Cc: Brad King; Justin Borodinsky; cmake-developers@cmake.org Subject: RE: [cmake-developers] target_link_libraries and --start-group/--end-group ? Well, in this particular case I believe we can patch the old release of Nsight Tegra that you're

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Dmitry Polyanitsa
@cmake.org Subject: RE: [cmake-developers] target_link_libraries and --start-group/--end-group ? Problem with that is that we are using generator expressions in the library path names. That won't work when trying to set CMAKE_EXE_LINKER_FLAGS if I'm not mistaken. -Original Message- From

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Robert Goulet
King; Justin Borodinsky; cmake-developers@cmake.org Subject: RE: [cmake-developers] target_link_libraries and --start-group/--end-group ? Well, in this particular case I believe we can patch the old release of Nsight Tegra that you're using to make it behave properly when -Wl,--start-group/-Wl

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Brad King
On 1/13/2015 6:19 AM, Dmitry Polyanitsa wrote: you could try using parentheses instead of -Wl,--start-group/-Wl,--end-group [snip] it should serve as a workaround while we fix the prefix addition to the -Wl flags in Nsight Tegra. Thanks, Dmitry. Robert, the linker group flags are

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Dmitry Polyanitsa
to the -Wl flags in Nsight Tegra. -Dmitry -Original Message- From: Brad King [mailto:brad.k...@kitware.com] Sent: Monday, January 12, 2015 9:06 PM To: Robert Goulet Cc: Justin Borodinsky; cmake-developers@cmake.org; Dmitry Polyanitsa Subject: Re: [cmake-developers] target_link_libraries

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Robert Goulet
] Sent: Tuesday, January 13, 2015 9:11 AM To: Robert Goulet Cc: Dmitry Polyanitsa; Justin Borodinsky; cmake-developers@cmake.org Subject: Re: [cmake-developers] target_link_libraries and --start-group/--end-group ? On 1/13/2015 6:19 AM, Dmitry Polyanitsa wrote: you could try using parentheses

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Dmitry Polyanitsa
; cmake-developers@cmake.org Subject: RE: [cmake-developers] target_link_libraries and --start-group/--end-group ? Hi all, Dmitry suggestion didn't work. It outputs the following in the .vcxproj file: AdditionalDependenciesc;m;dl;log;android;EGL;GLESv2;OpenSLES;(;foo;bar;)/AdditionalDependencies

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Robert Goulet
To: Robert Goulet; Brad King Cc: Justin Borodinsky; cmake-developers@cmake.org Subject: RE: [cmake-developers] target_link_libraries and --start-group/--end-group ? Ah, in that case I'm afraid it won't work since we've added the parentheses syntax in 3.0r4. The only other option I can think

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Robert Goulet
, January 13, 2015 10:48 AM To: Robert Goulet; Brad King Cc: Justin Borodinsky; cmake-developers@cmake.org Subject: RE: [cmake-developers] target_link_libraries and --start-group/--end-group ? Robert, What Nsight Tegra version are you using? The AdditionalDependencies string you've described

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-13 Thread Dmitry Polyanitsa
-developers@cmake.org Subject: RE: [cmake-developers] target_link_libraries and --start-group/--end-group ? Using NVidia NSight Tegra 3.0r3. Upgrading to 3.0r4 is not an option right now because it would require all our users to use and nightly build of CMake and we want to stick with official

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-12 Thread Brad King
On 1/9/2015 4:28 PM, Robert Goulet wrote: I realize the cmake documentation says that everything that starts with - should be treated as other linker flags, so I wonder, perhaps it's a new bug, or maybe just with a specific generator? In this case I am using the new NVidia NSight Android

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-12 Thread Brad King
On 1/12/2015 12:39 PM, Robert Goulet wrote: the generated line in the .vcxproj file looks correct : AdditionalDependenciesandroid;dl;EGL;GLESv3;OpenSLES;-Wl,--start-group;libfoo.a;libbar.a;-Wl,--end-group/AdditionalDependencies So now I am guessing the problem is in the glue that adds

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-12 Thread Robert Goulet
Borodinsky; cmake-developers@cmake.org Subject: Re: [cmake-developers] target_link_libraries and --start-group/--end-group ? On 1/9/2015 4:28 PM, Robert Goulet wrote: I realize the cmake documentation says that everything that starts with - should be treated as other linker flags, so I wonder, perhaps

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-11 Thread Justin Borodinsky
...@gmail.com justin.borodin...@gmail.com] *Sent:* Thursday, January 8, 2015 10:18 PM *To:* Robert Goulet *Cc:* Robert Maynard; cmake-developers@cmake.org *Subject:* Re: [cmake-developers] target_link_libraries and --start-group/--end-group ? I had a similar problem, and I found that passing

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-09 Thread Robert Goulet
To: Robert Goulet Cc: Robert Maynard; cmake-developers@cmake.org Subject: Re: [cmake-developers] target_link_libraries and --start-group/--end-group ? I had a similar problem, and I found that passing the extra flags, along with the libraries, to target_link_libraries directly worked. On Tue, Jan 6

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-09 Thread Robert Goulet
confirm if this also happens with other generators? Thanks! From: Robert Goulet Sent: Friday, January 9, 2015 10:55 AM To: 'Justin Borodinsky' Cc: Robert Maynard; cmake-developers@cmake.org Subject: RE: [cmake-developers] target_link_libraries and --start-group/--end-group ? I tried

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-08 Thread Justin Borodinsky
*To:* Robert Goulet *Cc:* cmake-developers@cmake.org *Subject:* Re: [cmake-developers] target_link_libraries and --start-group/--end-group ? I believe what you want to do is bring the libraries in as imported targets and set the target property IMPORTED_LINK_INTERFACE_MULTIPLICITY ( http

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-06 Thread Robert Goulet
[mailto:robert.mayn...@kitware.com] Sent: Monday, January 5, 2015 4:22 PM To: Robert Goulet Cc: cmake-developers@cmake.org Subject: Re: [cmake-developers] target_link_libraries and --start-group/--end-group ? I believe what you want to do is bring the libraries in as imported targets and set

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-05 Thread Gregor Jasny
Hello, On 05/01/15 20:09, Robert Goulet wrote: My project needs to link with an external library which actually consist of a set of libraries. Adding these libs using target_link_libraries should be working just fine but unfortunately these libs have a bunch of circular dependencies, so it

[cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-05 Thread Robert Goulet
Hi, My project needs to link with an external library which actually consist of a set of libraries. Adding these libs using target_link_libraries should be working just fine but unfortunately these libs have a bunch of circular dependencies, so it fails. In the makefile, we link with these

Re: [cmake-developers] target_link_libraries and --start-group/--end-group ?

2015-01-05 Thread Robert Maynard
I believe what you want to do is bring the libraries in as imported targets and set the target property IMPORTED_LINK_INTERFACE_MULTIPLICITY ( http://www.cmake.org/cmake/help/v3.0/prop_tgt/IMPORTED_LINK_INTERFACE_MULTIPLICITY.html ). By default the value should be 2 which means that we will list