Skip to content

Commit f4ae045

Browse files
committed
Use new version parameter to avoid empty major version
1 parent 21e055f commit f4ae045

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorflow_cc/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
2+
cmake_policy(SET CMP0048 NEW) # Enable version parameter in project().
23
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/PROJECT_VERSION" version)
34
project(
45
"tensorflow_cc"
6+
VERSION ${version}
57
)
6-
set(PROJECT_VERSION "${version}")
78

89
# If enabled, bazel has to be installed.
910
option(ALLOW_CUDA "Try to find and use CUDA." ON)

0 commit comments

Comments
 (0)