소스 검색

ENH: Allow users to work around problems with the builtin chrpath by setting CMAKE_NO_BUILTIN_CHRPATH.

Brad King 17 년 전
부모
커밋
652951b976
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      Source/cmTarget.cxx

+ 6 - 0
Source/cmTarget.cxx

@@ -3034,6 +3034,12 @@ bool cmTarget::IsChrpathUsed()
     return false;
     return false;
     }
     }
 
 
+  // Allow the user to disable builtin chrpath explicitly.
+  if(this->Makefile->IsOn("CMAKE_NO_BUILTIN_CHRPATH"))
+    {
+    return false;
+    }
+
   // Enable if the rpath flag uses a separator and the target uses ELF
   // Enable if the rpath flag uses a separator and the target uses ELF
   // binaries.
   // binaries.
   if(const char* ll = this->GetLinkerLanguage(
   if(const char* ll = this->GetLinkerLanguage(