cmake: fix OPAEGit.cmake
errantly changed this
opae-libs file in the opae-sdk tree. Bringing the two back into
sync..
The change in 2051 broke our application --version output. This
change corrects it.
#!/usr/bin/cmake -P
-## Copyright(c) 2017-2020, Intel Corporation
+## Copyright(c) 2017-2021, Intel Corporation
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
find_program(OPAE_GIT_EXECUTABLE git)
-if((EXISTS ${OPAE_GIT_EXECUTABLE}) AND (EXISTS "${CMAKE_SOURCE_DIR}/.git"))
+if(EXISTS ${OPAE_GIT_EXECUTABLE})
# Find the abbreviated git commit hash.
execute_process(COMMAND ${OPAE_GIT_EXECUTABLE} log -1 --format=%h
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
