Skip to content

Commit fac88da

Browse files
[CMake] Add warning if UMF version is set to 0.0.0
Improper version set in CMake means, our lib will be wrongly configured and libumf.so.0.0.0 will be produced... which most likely is not expected (unless it's a developer's build).
1 parent fd5a50a commit fac88da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ project(
2626
umf
2727
VERSION ${UMF_CMAKE_VERSION}
2828
LANGUAGES C)
29+
if(UMF_CMAKE_VERSION VERSION_EQUAL "0.0.0")
30+
message(
31+
WARNING
32+
"UMF version is set to 0.0.0, which most likely is not expected! "
33+
"Please checkout the git tags to get a proper version.")
34+
endif()
2935

3036
if(PROJECT_VERSION_PATCH GREATER 0)
3137
# set extra variable for Windows dll metadata

0 commit comments

Comments
 (0)