File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,17 @@ include(ROCMCreatePackage)
112112include (ROCMInstallTargets )
113113include (ROCMCheckTargetIds )
114114
115- rocm_setup_version (VERSION 2.0.0 )
116- project (rocshmem VERSION 2.0.0 LANGUAGES CXX )
115+ ## Setup VERSION
116+ file (READ include /rocshmem/rocshmem.hpp header_text )
117+ if ("${header_text} " MATCHES "constexpr char VERSION\\ [\\ ] *= \" ([0-9]+)\\ .([0-9]+)\\ .([0-9]+)\" ;" )
118+ set (VERSION_STRING ${CMAKE_MATCH_1} .${CMAKE_MATCH_2} .${CMAKE_MATCH_3} )
119+ else ()
120+ message (FATAL_ERROR "Failed to parse Version" )
121+ endif ()
122+ message (STATUS "rocSHMEM Version: " "${VERSION_STRING} " )
123+
124+ rocm_setup_version (VERSION ${VERSION_STRING} )
125+ project (rocshmem VERSION ${VERSION_STRING} LANGUAGES CXX )
117126
118127###############################################################################
119128# CREATE ROCSHMEM LIBRARY
Original file line number Diff line number Diff line change 5252
5353namespace rocshmem {
5454
55- constexpr char VERSION[] = " 2 .0.0" ;
55+ constexpr char VERSION[] = " 3 .0.0" ;
5656
5757/* *****************************************************************************
5858 **************************** HOST INTERFACE **********************************
You can’t perform that action at this time.
0 commit comments