Browse Source

setting version consistent with new guidelines. (not tagging...yet).

Lee Thomason 12 năm trước cách đây
mục cha
commit
85afe9c5c7
3 tập tin đã thay đổi với 6 bổ sung9 xóa
  1. 2 2
      CMakeLists.txt
  2. 1 1
      dox
  3. 3 6
      tinyxml2.h

+ 2 - 2
CMakeLists.txt

@@ -10,8 +10,8 @@ include(GNUInstallDirs)
 ################################
 # set lib version here
 
-set(GENERIC_LIB_VERSION "1.1.0")
-set(GENERIC_LIB_SOVERSION "1")
+set(GENERIC_LIB_VERSION "2.0.0")
+set(GENERIC_LIB_SOVERSION "2")
 
 
 ################################

+ 1 - 1
dox

@@ -32,7 +32,7 @@ PROJECT_NAME           = "TinyXML-2"
 # This could be handy for archiving the generated documentation or
 # if some version control system is used.
 
-PROJECT_NUMBER = 1.1.0
+PROJECT_NUMBER = 2.0.0
 
 # Using the PROJECT_BRIEF tag one can provide an optional one line description
 # for a project that appears at the top of each page and should give viewer

+ 3 - 6
tinyxml2.h

@@ -117,13 +117,10 @@ inline int TIXML_SNPRINTF( char* buffer, size_t size, const char* format, ... )
 #endif
 
 /* Versioning, past 1.0.14:
-
-	A backwards-incompatible change or API change bumps the major version.
-	An API addition or a backwards-compatible change, bumps the minor version.
-	Simple bug fixes bump the build number.
+	http://semver.org/
 */
-static const int TIXML2_MAJOR_VERSION = 1;
-static const int TIXML2_MINOR_VERSION = 1;
+static const int TIXML2_MAJOR_VERSION = 2;
+static const int TIXML2_MINOR_VERSION = 0;
 static const int TIXML2_PATCH_VERSION = 0;
 
 namespace tinyxml2