qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject cmake install seems to tamper with interpreter directive
Date Wed, 06 Sep 2017 16:58:27 GMT
It seems that the install directive for PROGRAMS in cmake somehow 
evaluates and rewrites the interpreter directive in some way.

E.g. in dispatch there is:

> install(PROGRAMS
>     ${CMAKE_CURRENT_SOURCE_DIR}/tools/qdstat
>     ${CMAKE_CURRENT_SOURCE_DIR}/tools/qdmanage
>     DESTINATION bin)

The first line of both those scripts is:

> #!/usr/bin/env python

But when you install, it rewrites that to whatever that evaluates to. 
This is not really what is wanted when building an install image for 
installation in some other system (e.g. an rpm or a docker image), where 
the setup may be different.

Does anyone know of a simple way to prevent this?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message