File: version-from-cmake-argument.patch

package info (click to toggle)
etlcpp 20.42.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 21,152 kB
  • sloc: cpp: 296,677; ansic: 10,807; sh: 1,418; asm: 301; python: 281; makefile: 16
file content (16 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: etlcpp/CMakeLists.txt
===================================================================
--- etlcpp.orig/CMakeLists.txt
+++ etlcpp/CMakeLists.txt
@@ -6,11 +6,6 @@ cmake_minimum_required(VERSION 3.10)
 include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/helpers.cmake)
 
 set(MSG_PREFIX "etl |")
-etl_determine_version_with_git(${GIT_DIR_LOOKUP_POLICY})
-if(NOT ETL_VERSION)
-    etl_determine_version_with_file("version.txt")
-endif()
-
 project(etl VERSION ${ETL_VERSION} LANGUAGES CXX)
 
 option(BUILD_TESTS "Build unit tests" OFF)