Browse Source

Prevent having to relink most of pandatool when version info changes

rdb 10 years ago
parent
commit
369305c529
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pandatool/src/progbase/programBase.cxx

+ 3 - 2
pandatool/src/progbase/programBase.cxx

@@ -27,7 +27,7 @@
 #include "configVariableBool.h"
 #include "panda_getopt_long.h"
 #include "preprocess_argv.h"
-#include "pandaVersion.h"
+#include "pandaSystem.h"
 
 #include <stdlib.h>
 #include <algorithm>
@@ -222,7 +222,8 @@ write_man_page(ostream &out) {
     }
   }
 
-  out << " 1 \"" << date_str << "\" \"" PANDA_VERSION_STR "\" Panda3D\n";
+  out << " 1 \"" << date_str << "\" \""
+      << PandaSystem::get_version_string() << "\" Panda3D\n";
 
   out << ".SH NAME\n";
   if (_brief.empty()) {