diff --git a/CMakeLists.txt b/CMakeLists.txt index 9132e7490b20..48efa783fbfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,7 +94,6 @@ endif() # if(DEFINED PROJECT_VERSION) - message("here 1") #project version is defined by -D on the cmake command line # only use that value, do not upate it at make time EXECUTE_PROCESS( COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tools/create_version_h.sh ${CMAKE_CURRENT_BINARY_DIR}/src/version_gen.h ${PROJECT_VERSION} @@ -102,9 +101,8 @@ if(DEFINED PROJECT_VERSION) ) else(DEFINED PROJECT_VERSION) if(NOT SOURCE_PACKAGE) - message("here 2") # this part is setting the corresponding CMake variable which gets used for example when creating a source package - EXECUTE_PROCESS(COMMAND git describe --tags --dirty HEAD + EXECUTE_PROCESS(COMMAND git describe --tags --dirty COMMAND sed "s,^release-,,;s,-,+,;s,-,~,;" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE PROJECT_VERSION WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) add_custom_target( @@ -114,7 +112,6 @@ else(DEFINED PROJECT_VERSION) WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) else(NOT SOURCE_PACKAGE) - message("here 3") set(PROJECT_VERSION "archive-$Format:%H$") execute_process( COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tools/create_version_h.sh ${CMAKE_CURRENT_BINARY_DIR}/src/version_gen.h ${PROJECT_VERSION} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} @@ -122,7 +119,6 @@ else(DEFINED PROJECT_VERSION) endif(NOT SOURCE_PACKAGE) endif(DEFINED PROJECT_VERSION) - message("here 4") # # Initial cmake/debian/postinst and prerm script for debian package