diff options
author | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2011-02-25 09:03:01 +0300 |
---|---|---|
committer | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2011-02-25 09:03:01 +0300 |
commit | 5005853d40d27202020517c01a7396d9b42081c5 (patch) | |
tree | 10ea63959080f83f40b8161d18625208ab125c77 | |
parent | 8a1cff54ceb9a136fc5a254eeffd20939c3e8fa6 (diff) |
Fix buildinfo, as pointed by IRIE Shinsuke.
Added a note about doubtful "copy if different".
-rw-r--r-- | build_files/cmake/buildinfo.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build_files/cmake/buildinfo.cmake b/build_files/cmake/buildinfo.cmake index 7bfd80294d7..bfc17ae2cfe 100644 --- a/build_files/cmake/buildinfo.cmake +++ b/build_files/cmake/buildinfo.cmake @@ -8,9 +8,9 @@ include(FindSubversion) # with a default in case anything fails, for examble when using git-svn set(MY_WC_REVISION "unknown") # Guess if this is a SVN working copy and then look up the revision -if(EXISTS ${CMAKE_SOURCE_DIR}/.svn/) +if(EXISTS ${SOURCE_DIR}/.svn/) if(Subversion_FOUND) - bversion_WC_INFO(${SOURCE_DIR} MY) + Subversion_WC_INFO(${SOURCE_DIR} MY) endif() endif() @@ -34,5 +34,6 @@ file(WRITE buildinfo.h.txt # Copy the file to the final header only if the version changes # and avoid needless rebuilds +# TODO: verify this comment is true, as BUILD_TIME probably changes execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different buildinfo.h.txt buildinfo.h) |