Commit 2a72bc16 authored by Simon Boyé's avatar Simon Boyé

Fixed git call in CMakeLists.txt to work with out-of-source build and to be...

Fixed git call in CMakeLists.txt to work with out-of-source build and to be ignored if git is missing.
parent 48bad813
......@@ -23,7 +23,12 @@ endif()
# get changeset id
execute_process(COMMAND git rev-parse HEAD OUTPUT_VARIABLE GIT_CHANGESET)
find_package(Git)
if(GIT_FOUND)
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
WORKING_DIRECTORY ${Patate_SOURCE_DIR}
OUTPUT_VARIABLE GIT_CHANGESET)
endif()
################################################################################
# Add core code source, so it is visible in dev environements #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment