clang-format vs plugin: set version number from cmake (PR20307)
authorHans Wennborg <hans@hanshq.net>
Mon, 21 Jul 2014 21:48:06 +0000 (21:48 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 21 Jul 2014 21:48:06 +0000 (21:48 +0000)
commit586448763eb9d2369c04f5cdbff0ecff9751a0f9
treed1d1ea33edb19baf5ef282cc380851dbde24512c
parenta89ad664b1bd732581a11af290315c8d3be91d71
clang-format vs plugin: set version number from cmake (PR20307)

Previously it was hard-coded to 1.0, which meant the installer would
not install the plugin over previous versions.

This commit makes us use LLVM's major.minor.patch version from cmake,
or whatever CLANG_FORMAT_VS_VERSION is set to when configuring the build.

It's pretty dirty to update a configuration file in the source directory
from the cmake build like this. However, the plugin build is already
dirty in this regard since it builds in the source dir when visual studio,
and then copies out the resulting vsix.

llvm-svn: 213584
clang/tools/clang-format-vs/CMakeLists.txt
clang/tools/clang-format-vs/source.extension.vsixmanifest.in [moved from clang/tools/clang-format-vs/ClangFormat/source.extension.vsixmanifest with 78% similarity]