Closed aytey closed 4 years ago
My initial testing (e.g., changing between branches) causes git_versioninfo.cpp
to be overwritten (correctly). If I don't change branches, and do an incremental build, then git_versioninfo.cpp
isn't touched (so no compiles happen).
Looks like it works:
[avj@tempvm build]$ ninja
[1/8] cd /home/avj/clones/CVC4/git_info/build/src/base && /home/BUILD64/bin/cmake-3.17.2/bin/cmake -DGIT_FOUND=TRUE -P GitInfo.cmake
[avj@tempvm build]$ ninja
[1/8] cd /home/avj/clones/CVC4/git_info/build/src/base && /home/BUILD64/bin/cmake-3.17.2/bin/cmake -DGIT_FOUND=TRUE -P GitInfo.cmake
[avj@tempvm build]$ git checkout -b I_am_a_new_branch
Switched to a new branch 'I_am_a_new_branch'
[avj@tempvm build]$ ninja
[1/8] cd /home/avj/clones/CVC4/git_info/build/src/base && /home/BUILD64/bin/cmake-3.17.2/bin/cmake -DGIT_FOUND=TRUE -P GitInfo.cmake
Files "git_versioninfo.cpp.curr" to "git_versioninfo.cpp" are different.
[8/8] Linking CXX shared library src/main/libmain-test.so
[avj@tempvm build]$ ninja
[1/8] cd /home/avj/clones/CVC4/git_info/build/src/base && /home/BUILD64/bin/cmake-3.17.2/bin/cmake -DGIT_FOUND=TRUE -P GitInfo.cmake
Attempt to ensure we don't have unnecessary compiles.
We want to see:
Signed-off-by: Andrew V. Jones andrew.jones@vector.com