Skip to content

Commit 1106cbb

Browse files
amielczaigcbot
authored andcommitted
Read IGC_Metadata from ENV
Read IGC_Metadata from ENV
1 parent aea1f76 commit 1106cbb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

IGC/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ if(NOT DEFINED IGC_API_PATCH_VERSION)
4242
endif()
4343

4444
# IGC_BUILD_METADATA
45+
# Used as version suffix, to distinguish builds with the same semantic version
46+
# Eg. libigc-1.2.3+x and libigc-1.2.3+y
4547
if(NOT DEFINED IGC_BUILD_METADATA)
46-
set(IGC_BUILD_METADATA 0)
48+
if(DEFINED ENV{IGC_BUILD_METADATA})
49+
set(IGC_BUILD_METADATA $ENV{IGC_BUILD_METADATA})
50+
else()
51+
set(IGC_BUILD_METADATA 0)
52+
endif()
4753
endif()
4854

4955
set(CMAKE_CXX_STANDARD 17)

0 commit comments

Comments
 (0)