Commit 50aa6372 authored by Naumann, Andreas's avatar Naumann, Andreas
Browse files

set amdisversion to 0.9.SVN_REVISION

parent 0da8d6cc
...@@ -10,6 +10,20 @@ SET(MTL_INCLUDE_DIR ${LIB_DIR}/mtl4/ CACHE PATH "mtl4 directory") ...@@ -10,6 +10,20 @@ SET(MTL_INCLUDE_DIR ${LIB_DIR}/mtl4/ CACHE PATH "mtl4 directory")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -g -Wall -DDEBUG=0") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -g -Wall -DDEBUG=0")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -DDEBUG=1 -O0") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -DDEBUG=1 -O0")
if(NOT CurrentRevision)
find_package(Subversion)
if(Subversion_FOUND)
Subversion_WC_INFO(${CMAKE_CURRENT_SOURCE_DIR} svn_info)
#message("svn-rev: ${svn_info_WC_REVISION}")
set(CurrentRevision "0.9.${svn_info_WC_REVISION}")
endif()
endif()
if(NOT AMDIS_MAJOR)
set(AMDIS_MAJOR "0")
endif()
if(NOT AMDIS_MINOR)
set(AMDIS_MINOR "9")
endif()
set(COMPILEFLAGS "-DAMDIS_VERSION=${CurrentRevision}") set(COMPILEFLAGS "-DAMDIS_VERSION=${CurrentRevision}")
#define the build type, empty can be everything and nothing #define the build type, empty can be everything and nothing
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment