From 460d9ce227eac67fbd66cd58acd80fc08e2cff93 Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <rashad.kanavath@c-s.fr>
Date: Thu, 12 Nov 2015 09:17:09 +0100
Subject: [PATCH] DOC: update version number in standalone package

---
 CMakeLists.txt                          | 4 ++++
 SuperBuild/CMake/External_package.cmake | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3a60016330..8008e06183 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,6 +63,10 @@ include(OTBModuleRemote)
 
 set(main_project_name ${_OTBModuleMacros_DEFAULT_LABEL})
 
+#Please also update PACKAGE_VERSION var in SuperBuild/CMake/External_package.cmake
+#when updating values below. There is no direct way to get OTB_VERSION_STRING value
+#there.. other than I use an file(READ ... REGEX) option.
+#Manually updating PACKAGE_VERSION seems way better than using read file and stuff.
 #-----------------------------------------------------------------------------
 # OTB version number.
 set(OTB_VERSION_MAJOR "5")
diff --git a/SuperBuild/CMake/External_package.cmake b/SuperBuild/CMake/External_package.cmake
index f424658a85..52c71706d0 100644
--- a/SuperBuild/CMake/External_package.cmake
+++ b/SuperBuild/CMake/External_package.cmake
@@ -1,7 +1,7 @@
 
 message(STATUS "Setup OTB Packaging...")
 
-set(PACKAGE_VERSION 5.0.0) #should take from cmake automatically or update with every release?
+set(PACKAGE_VERSION 5.2.0)
 set(PACKAGE_NAME OTB)
 set(PACKAGE_LONG_NAME OrfeoToolBox)
 
-- 
GitLab