Remove gitconfig.h.cmake

It is just one line which can be better generated in the CMakeLists.txt
itself, just as ISL's configure does.

Reviewers: grosser
llvm-svn: 242771
This commit is contained in:
Michael Kruse 2015-07-21 12:06:27 +00:00
parent bf5a711e96
commit d2bb9a3a31
2 changed files with 6 additions and 2 deletions

View File

@ -140,7 +140,12 @@ if (NOT HAVE_DECL_SNPRINTF AND NOT HAVE_DECL__SNPRINTF)
endif ()
# Write configure result
configure_file("External/gitversion.h.cmake" "${ISL_BINARY_DIR}/gitversion.h")
# configure_file(... COPYONLY) avoids that the time stamp changes if the file is identical
file(WRITE "${ISL_BINARY_DIR}/gitversion.h.tmp"
"#define GIT_HEAD_ID \"${GIT_HEAD_ID}\"")
configure_file("${ISL_BINARY_DIR}/gitversion.h.tmp"
"${ISL_BINARY_DIR}/gitversion.h" COPYONLY)
configure_file("External/isl_config.h.cmake" "${ISL_BINARY_DIR}/isl_config.h")
# ISL files to compile

View File

@ -1 +0,0 @@
#define GIT_HEAD_ID "@GIT_HEAD_ID@"