Skip to content

Commit 8ae0a09

Browse files
flagardeLecrisUT
andauthored
Update cmake/CPM.cmake
Co-authored-by: Cristian Le <github@lecris.me>
1 parent a70c613 commit 8ae0a09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/CPM.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ if(NOT COMMAND cpm_message)
4242
endfunction()
4343
endif()
4444

45-
if("${PROJECT_NAME}" STREQUAL "CPM" AND CPM_RELEASE)
46-
set(CURRENT_CPM_VERSION "${PROJECT_VERSION}")
45+
if(DEFINED CPM_VERSION)
46+
set(CURRENT_CPM_VERSION "${CPM_VERSION}${CPM_DEVELOPMENT}")
4747
else()
4848
set(CURRENT_CPM_VERSION 1.0.0-development-version)
4949
endif()

0 commit comments

Comments
 (0)