Skip to content

Commit

Permalink
Supress fatal message in CPP example build (#1701)
Browse files Browse the repository at this point in the history
There is no .git file, so version could be retrieved from environment
variable.
  • Loading branch information
aLekSer committed Jul 21, 2020
1 parent 7e99486 commit e583830
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdks/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ if (Git_FOUND)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_QUIET
)
if (${result} EQUAL 0)
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" AGONES_VERSION ${output})
Expand Down

0 comments on commit e583830

Please sign in to comment.