summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorvagrant <vagrant@localhost.localdomain>2019-01-28 11:50:20 +0000
committervagrant <vagrant@localhost.localdomain>2019-01-28 11:50:20 +0000
commit0d74c50c48ae518fedb44e5d04a148eaa02b485b (patch)
tree9e000d8a05a58d101cd838f9d914bbeb9dcee537 /CMakeLists.txt
parenta293e77c132f8eaa2b1dd52ae9b926b90f72cfd0 (diff)
parent4aa979cd6cd0e437ab5cc02367adf140d63030b6 (diff)
downloadregularization-0d74c50c48ae518fedb44e5d04a148eaa02b485b.tar.gz
regularization-0d74c50c48ae518fedb44e5d04a148eaa02b485b.tar.bz2
regularization-0d74c50c48ae518fedb44e5d04a148eaa02b485b.tar.xz
regularization-0d74c50c48ae518fedb44e5d04a148eaa02b485b.zip
Merge branch 'master' of https://github.com/vais-ral/CCPi-Regularisation-Toolkit
Conflicts: build/jenkins-build.sh
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 550b896..b95107a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,10 @@ set (CIL_VERSION_MAJOR 0)
set (CIL_VERSION_MINOR 10)
set (CIL_VERSION_PATCH 2)
-set (CIL_VERSION '${CIL_VERSION_MAJOR}.${CIL_VERSION_MINOR}.${CIL_VERSION_PATCH}' CACHE INTERNAL "Core Imaging Library version" FORCE)
+# set (CIL_VERSION '${CIL_VERSION_MAJOR}.${CIL_VERSION_MINOR}.${CIL_VERSION_PATCH}' CACHE INTERNAL "Core Imaging Library version" FORCE)
+# get CIL_VERSION from environment variable and set it in cmake
+set (CIL_VERSION $ENV{CIL_VERSION} CACHE INTERNAL "Core Imaging Library version" FORCE)
+message(STATUS "CIL_VERSION set to " ${CIL_VERSION})
# set the Python variables for the Conda environment
#include(${CMAKE_SOURCE_DIR}/CMake/FindAnacondaEnvironment.cmake)