Skip to content

Commit

Permalink
Supress fatal message in CPP example build (googleforgames#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 authored and ilkercelikyilmaz committed Oct 23, 2020
1 parent 3913f8a commit 3d06304
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 3d06304

Please sign in to comment.