Skip to content

Commit

Permalink
Read IGC_Metadata from ENV
Browse files Browse the repository at this point in the history
Read IGC_Metadata from ENV
  • Loading branch information
amielcza authored and igcbot committed Jan 10, 2025
1 parent aea1f76 commit 1106cbb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion IGC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ if(NOT DEFINED IGC_API_PATCH_VERSION)
endif()

# IGC_BUILD_METADATA
# Used as version suffix, to distinguish builds with the same semantic version
# Eg. libigc-1.2.3+x and libigc-1.2.3+y
if(NOT DEFINED IGC_BUILD_METADATA)
set(IGC_BUILD_METADATA 0)
if(DEFINED ENV{IGC_BUILD_METADATA})
set(IGC_BUILD_METADATA $ENV{IGC_BUILD_METADATA})
else()
set(IGC_BUILD_METADATA 0)
endif()
endif()

set(CMAKE_CXX_STANDARD 17)
Expand Down

0 comments on commit 1106cbb

Please sign in to comment.