Re: [CMake] Does SET_TARGET_PROPERTIES(foo PROPERTIES INSTALL_RPATH /path1; /path2) still silently ignore path2?

2015-08-11 Thread David Cole via CMake
A totally reasonable suggestion. Patches welcome. ;-) On Tuesday, August 11, 2015, Dan Kegel wrote: > Aha. Well, how about sanity checks on the names of the properties? > Maybe a new policy could be added that property names have to be > declared (and the ones supported by cmake itself would b

Re: [CMake] Does SET_TARGET_PROPERTIES(foo PROPERTIES INSTALL_RPATH /path1; /path2) still silently ignore path2?

2015-08-11 Thread Dan Kegel
Aha. Well, how about sanity checks on the names of the properties? Maybe a new policy could be added that property names have to be declared (and the ones supported by cmake itself would be predeclared, of course), and setting an undeclared one would throw an error. On Tue, Aug 11, 2015 at 6:57 A

Re: [CMake] Does SET_TARGET_PROPERTIES(foo PROPERTIES INSTALL_RPATH /path1; /path2) still silently ignore path2?

2015-08-11 Thread David Cole via CMake
The final args to set_target_properties are any number of name/value pairs: http://www.cmake.org/cmake/help/v3.3/command/set_target_properties.html The only thing we could do there is look for an even number of args, and catch possible problems half the time... I'm not sure if there are any restr

Re: [CMake] Does SET_TARGET_PROPERTIES(foo PROPERTIES INSTALL_RPATH /path1; /path2) still silently ignore path2?

2015-08-11 Thread Nils Gladitz
On 08/11/2015 03:23 PM, Dan Kegel wrote: Thanks. Should set_target_properties throw an error if given too many arguments, to catch this problem? There is no limit to the number of key value pairs set_target_properties() can process and it already diagnoses when there is a key without a value

Re: [CMake] Does SET_TARGET_PROPERTIES(foo PROPERTIES INSTALL_RPATH /path1; /path2) still silently ignore path2?

2015-08-11 Thread Dan Kegel
Thanks. Should set_target_properties throw an error if given too many arguments, to catch this problem? Am 10.08.2015 11:43 nachm. schrieb "Nils Gladitz" : > On 08/11/2015 12:51 AM, Dan Kegel wrote: > >> With cmake 2.8.12.2, >> >> SET_TARGET_PROPERTIES (foo PROPERTIES INSTALL_RPATH ${my_install_r

Re: [CMake] Install targets and component

2015-08-11 Thread Lars
Thank you Nils, that solved the issue. Cannot believe I missed that in the documentation. Regards, Lars > Date: Tue, 11 Aug 2015 09:41:22 +0200 > From: nilsglad...@gmail.com > To: laasu...@hotmail.com; cmake@cmake.org > Subject: Re: [CMake] Install targets and component > > On 08/11/2015 09:0

Re: [CMake] Install targets and component

2015-08-11 Thread Nils Gladitz
On 08/11/2015 09:05 AM, Lars wrote: Hello, The following cmake script appears to work but the target is associated with "Unspecified" group according to cmake_install.cmake file. INSTALL( TARGETS MyLib RUNTIME DESTINATION "${BIN_PATH}" LIBRARY DESTINATION "${LIB_PATH}" COMPONENT COMP

[CMake] Install targets and component

2015-08-11 Thread Lars
Hello, The following cmake script appears to work but the target is associated with "Unspecified" group according to cmake_install.cmake file. INSTALL( TARGETS MyLib RUNTIME DESTINATION "${BIN_PATH}" LIBRARY DESTINATION "${LIB_PATH}" COMPONENT COMP_APP) By removing the following sectio