Skip to content

Commit e1be28b

Browse files
committed
CMake prints full_git_describe instead of version
- Print full `git describe` when building with CMake - Fall back on project version if can't `git describe`
1 parent b30d0d3 commit e1be28b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ endif()
5959

6060
if(NOT full_git_describe)
6161
set(full_git_describe ${OpenCoarraysVersion})
62-
message( STATUS "Full `git describe`: ${full_git_describe}")
6362
endif()
6463

6564
project(opencoarrays VERSION "${OpenCoarraysVersion}" LANGUAGES C Fortran)
66-
message( STATUS "Building OpenCoarrays version: ${OpenCoarraysVersion}" )
65+
message( STATUS "Building OpenCoarrays version: ${full_git_describe}" )
6766

6867
#Print an error message on an attempt to build inside the source directory tree:
6968
if ("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")

0 commit comments

Comments
 (0)