[CMake] adding program suffix

Michael Wild themiwi at gmail.com
Mon Mar 11 04:39:32 EDT 2013


That's not what Chandan wants to achieve. He wants to have a suffix
appended to every executable being installed, so he can have different
versions installed and select among them through the suffix. Think gcc-4.4,
gcc-4.6 and gcc-4.7 being present on your system.


On Mon, Mar 11, 2013 at 9:27 AM, J Decker <d3ck0r at gmail.com> wrote:

>
>
> On Mon, Mar 11, 2013 at 1:24 AM, Michael Wild <themiwi at gmail.com> wrote:
>
>>
>>
>>
>> On Mon, Mar 11, 2013 at 9:20 AM, J Decker <d3ck0r at gmail.com> wrote:
>>
>>>
>>>
>>> On Sun, Mar 10, 2013 at 11:56 PM, Chandan Choudhury <iitdckc at gmail.com>wrote:
>>>
>>>>
>>>> Dear cmake users,
>>>>
>>>> I am very new to cmake. I really find it interesting. I installed
>>>> gromacs (4.6.1) with it. One simple query regarding its usage is, how do I
>>>> add program suffix to the executables created.
>>>>
>>>>
>>>    SET_TARGET_PROPERTIES( <target> PROPERTIES
>>>                   SUFFIX ".different.suffix" )
>>>
>>>
>>>
>>>>
>>>> Chandan
>>>>
>>>
>> IMHO this is not they way to go about this problem if you're not the
>> developer of the software... It might be the last resort if the developers
>> were not careful enough to allow users to override the program suffix, but
>> IMHO this should be configurable through the cache.
>>
>> Sure; but should be implemented on a per target basis, and certainly not
> globally.  I've had great success just chaining other CMake based projects
> into my builds, if they don't do rude things like set global library
> suffixes that end up propagating through previuosly working projects.
>
>
>> Michael
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130311/82822321/attachment.htm>


More information about the CMake mailing list