[CMake] Use FIND_LIBRARY to search & link for an executable?

Michael Wild themiwi at gmail.com
Fri Sep 18 03:07:19 EDT 2009


On 18. Sep, 2009, at 8:14, Christian Ehrlicher wrote:

> Hi,
>
> I've an external project which made the decision to create an  
> executable which exports symbols. This means if you want to write a  
> plugin for this project you have to link your plugin against this  
> executable.
> Now I've the problem that FIND_LIBRARY doesn't find this executable.  
> Does anybody knows a hack to be able to link against an executable  
> which is not built by the project?
>
> I'm really lost here but I can't convince them to fix it... :(
> Managing an own patch to work around this problem isn't a good long- 
> term perspective.
>
> Thx,
> Christian

find_program?

And that is a REALLY broken design (and AFAIK only works on Windows).

Michael


More information about the CMake mailing list