فهرست منبع

BUG: Fixed generation of mismatched IF in install script. This bug was introduced during the m_ sweep.

Brad King 19 سال پیش
والد
کامیت
77c65b954e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Source/cmLocalGenerator.cxx

+ 1 - 1
Source/cmLocalGenerator.cxx

@@ -308,7 +308,7 @@ void cmLocalGenerator::GenerateInstallRules()
   fout << "# Install script for directory: "
        << this->Makefile->GetCurrentDirectory() << std::endl << std::endl;
   fout << "# Set the install prefix" << std::endl
-    << "IF(NOT CMAKE_INSTALL_PREFIX)" << std::endl
+    << "IF(NOT DEFINED CMAKE_INSTALL_PREFIX)" << std::endl
     << "  SET(CMAKE_INSTALL_PREFIX \"" << prefix << "\")" << std::endl
     << "ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)" << std::endl
     << "STRING(REGEX REPLACE \"/$\" \"\" CMAKE_INSTALL_PREFIX \"${CMAKE_INSTALL_PREFIX}\")" << std::endl