View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003593CMakeCMakepublic2006-08-10 05:232006-08-17 08:52
Reporteraxel.roebel 
Assigned ToBrad King 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003593: RPATH to source directory remains after installation
DescriptionHaving set
CMAKE_INSTALL_RPATH_USE_LINK_PATH to on
I am astonished to see the rpath after installation to still contain source directory.
As far as I understand the documentation
the installed file rpath should only contain link directories outside the source.

While this is not so much a problem because it is the last entry in the list of path it probably should not be there.

I am using unix makefile generator.

cheers
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0004654)
Brad King (manager)
2006-08-16 09:59

The following code in cmLocalGenerator.cxx implements the CMAKE_INSTALL_RPATH_USE_LINK_PATH feature:

        else if(use_link_rpath)
          {
          // Do not add any path inside the source or build tree.
          const char* topSourceDir = this->Makefile->GetHomeDirectory();
          const char* topBinaryDir = this->Makefile->GetHomeOutputDirectory();
          if(!cmSystemTools::ComparePath(libDir->c_str(), topSourceDir) &&
             !cmSystemTools::ComparePath(libDir->c_str(), topBinaryDir) &&
             !cmSystemTools::IsSubDirectory(libDir->c_str(), topSourceDir) &&
             !cmSystemTools::IsSubDirectory(libDir->c_str(), topBinaryDir))
            {
            runtimeDirs.push_back(fullLibPath);
            }
          }

What are your source and binary trees and what paths to them remain in the rpath after installation?
(0004658)
axel.roebel (reporter)
2006-08-17 06:17

I rechecked and the path to source-dir
is no longer there. This is quite astonishing.

It may be due to the fact that I updated
from cmake 2.4.2 to cmake 2.4.3 and did not
clean the cache?

Anyway seems to be no bug.

Thanks for having a look.
(0004659)
Brad King (manager)
2006-08-17 08:52

I'm not sure how a 2.4.2 -> 2.4.3 upgrade could affect this, but since you can no longer duplicate the problem I'll close the bug for now. If you encounter it again please re-open.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team