Skip to content

Commit

Permalink
Version number based on rocm release (#69)
Browse files Browse the repository at this point in the history
* Version number based on rocm release

* Fixing whitespace

* Fixing based on review for PR
  • Loading branch information
saadrahim committed May 15, 2019
1 parent a478e7c commit 9962bf8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cmake_minimum_required(VERSION 3.5.1 FATAL_ERROR)
set(CMAKE_INSTALL_PREFIX "/opt/rocm" CACHE PATH "Install path prefix, prepended onto install directories")

# rocPRIM project
project(rocprim VERSION 1.0.2.0 LANGUAGES CXX)
project(rocprim LANGUAGES CXX)

# CMake modules
list(APPEND CMAKE_MODULE_PATH
Expand Down Expand Up @@ -72,6 +72,17 @@ include(cmake/Dependencies.cmake)
# AMD targets
set(AMDGPU_TARGETS gfx803;gfx900;gfx906 CACHE STRING "List of specific machine types for library to target")

# Setup VERSION
set ( VERSION_STRING "2.5.0." )

# Check if BUILD_NUMBER is defined in a Jenkins envirnment
if ($ENV{BUILD_NUMBER} )
string(CONCAT BUILD_VERSION ${VERSION_STRING} $ENV{BUILD_NUMBER})
else ()
string(CONCAT BUILD_VERSION ${VERSION_STRING} "0")
endif ()
rocm_setup_version( VERSION ${BUILD_VERSION} NO_GIT_TAG_VERSION )

# Print configuration summary
include(cmake/Summary.cmake)
print_configuration_summary()
Expand Down

0 comments on commit 9962bf8

Please sign in to comment.