Skip to content

Commit cd6dd7b

Browse files
authored
Set cmake project version if empty (#2785)
1 parent accf4df commit cd6dd7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ cmake_policy(SET CMP0042 NEW)
2121
# Enable support for MSVC_RUNTIME_LIBRARY
2222
cmake_policy(SET CMP0091 NEW)
2323

24-
# Check if VERSION is provided externally, otherwise default to 5.0.3
25-
if(NOT DEFINED PROJECT_VERSION)
24+
# Check if VERSION is provided externally, otherwise default to 5.0.6
25+
if(NOT DEFINED PROJECT_VERSION OR PROJECT_VERSION STREQUAL "")
2626
set(PROJECT_VERSION "5.0.6")
2727
endif()
2828

0 commit comments

Comments
 (0)