[CMake] adding program suffix

J Decker d3ck0r at gmail.com
Mon Mar 11 04:27:30 EDT 2013


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/4bac89cb/attachment.htm>


More information about the CMake mailing list