[polly] r242771 - Remove gitconfig.h.cmake
Michael Kruse
llvm at meinersbur.de
Tue Jul 21 05:06:28 PDT 2015
Author: meinersbur
Date: Tue Jul 21 07:06:27 2015
New Revision: 242771
URL: http://llvm.org/viewvc/llvm-project?rev=242771&view=rev
Log:
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
Removed:
polly/trunk/lib/External/gitversion.h.cmake
Modified:
polly/trunk/lib/CMakeLists.txt
Modified: polly/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CMakeLists.txt?rev=242771&r1=242770&r2=242771&view=diff
==============================================================================
--- polly/trunk/lib/CMakeLists.txt (original)
+++ polly/trunk/lib/CMakeLists.txt Tue Jul 21 07:06:27 2015
@@ -140,7 +140,12 @@ if (NOT HAVE_DECL_SNPRINTF AND NOT HAVE_
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
Removed: polly/trunk/lib/External/gitversion.h.cmake
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/gitversion.h.cmake?rev=242770&view=auto
==============================================================================
--- polly/trunk/lib/External/gitversion.h.cmake (original)
+++ polly/trunk/lib/External/gitversion.h.cmake (removed)
@@ -1 +0,0 @@
-#define GIT_HEAD_ID "@GIT_HEAD_ID@"
More information about the llvm-commits
mailing list