[CMake] rpath limitations of CMake for the Cygwin platform

Bill Hoffman bill.hoffman at kitware.com
Mon Oct 29 20:08:44 EDT 2007


Alan W. Irwin wrote:
> I don't have access to Cygwin myself, but I have recently been getting
> PLplot feedback from one of our developers and also two of our more
> experienced users for that platform.  From their detailed "make" and "make
> install" results it appears rpath is being completely
> ignored both in the build tree (where CMake automatically takes care of the
> complicated rpath concerns for my Linux platform), and the build tree 
> (where
> for PLplot we use the INSTALL_RPATH PROPERTY of SET_TARGET_PROPERTIES to 
> set
> rpath).
> 
> Being able to set rpath for both the build tree and install tree is
> incredibly convenient for the Linux CMake version.  Is there some technical
> reason why this killer feature is missing from the Cygwin CMake version or
> is this just currently an unimplemented feature for the Cygwin CMake
> version?
> 

There is no such thing as RPATH on windows or cygwin.  Basically on 
windows/cygwin you have to have the shared libraries or dll's in the 
same directory as the executables. The only RPATH  of sorts on windows 
is that "." is in the PATH.  Other than that, users have to put 
directories with dll's in the PATH explicitly.

-Bill


More information about the CMake mailing list