Re: [cmake-developers] [CMake][PATCH] AIX RPATH handling

2015-12-10 Thread CHEVRIER, Marc
Hi, I identify the root of the problem: if I specify version 3.4 in cmake_minimum_required, generated link command (stored in file link.txt) for an executable does not contains value specified in variable CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS. Specifying 3.3 fix the problem. So this is a

Re: [cmake-developers] [CMake][PATCH] AIX RPATH handling

2015-12-10 Thread Brad King
On 12/10/2015 04:03 AM, CHEVRIER, Marc wrote: > I identify the root of the problem: if I specify version 3.4 in > cmake_minimum_required, generated link command (stored in file link.txt) > for an executable does not contains value specified in variable > CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS.

Re: [cmake-developers] [CMake][PATCH] AIX RPATH handling

2015-12-10 Thread CHEVRIER, Marc
Ok. I see the problem. Thanks for your investigation. I will work on that and submit a patch to solve this problem. Marc On 10/12/15 14:42, "Brad King" wrote: >On 12/10/2015 04:03 AM, CHEVRIER, Marc wrote: >> I identify the root of the problem: if I specify version

Re: [cmake-developers] [CMake][PATCH] AIX RPATH handling

2015-12-09 Thread Brad King
On 12/09/2015 09:09 AM, CHEVRIER, Marc wrote: > You are right. I missed this capability. > My first idea was to apply to exec the same approach as for shared lib but I > didn’t found appropriate variable: something like > CMAKE_EXE_CREATE__FLAGS > Or may be CMAKE_EXE_LINKER_FLAGS_INIT can be

Re: [cmake-developers] [CMake][PATCH] AIX RPATH handling

2015-12-09 Thread Brad King
On 12/09/2015 08:02 AM, CHEVRIER, Marc wrote: > Attached is a patch for AIX enabling correct generation of executables > regarding runtime path handling (currently, build paths could be stored > as part of installed executables): option -bnoipath is required for > executables link command

Re: [cmake-developers] [CMake][PATCH] AIX RPATH handling

2015-12-09 Thread CHEVRIER, Marc
Oops ! You are right, on a simple example, all is OK. So the problem seems on my side. I will investigate this curious behaviour… Sorry for the noise. Marc On 09/12/15 15:15, "Brad King" wrote: >On 12/09/2015 09:09 AM, CHEVRIER, Marc wrote: >> You are right. I

Re: [cmake-developers] [CMake][PATCH] AIX RPATH handling

2015-12-09 Thread CHEVRIER, Marc
You are right. I missed this capability. My first idea was to apply to exec the same approach as for shared lib but I didn’t found appropriate variable: something like CMAKE_EXE_CREATE__FLAGS Or may be CMAKE_EXE_LINKER_FLAGS_INIT can be used but I am not sure of the usage of the *_INIT