[CMake] If set we should pass LLVM_VERSION_INFO into config.h
authorChris Bieneman <beanz@apple.com>
Mon, 25 Apr 2016 23:02:47 +0000 (23:02 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 25 Apr 2016 23:02:47 +0000 (23:02 +0000)
commited737d7881ebdadf7d66a03a8502e3899f162ade
tree9b44bf8e20a8dbece02680eb67203a9328a37d0d
parent51208eaccc82f7dd4783383141d61f81d6a9c07b
[CMake] If set we should pass LLVM_VERSION_INFO into config.h

Autoconf used to support setting LLVM_VERSION_INFO and there is some code filtered around llvm in Support/CommandLine.cpp and LTO/LTOCodeGenerator.cpp that uses it if it is set.

We also shouldn't be explicitly setting it as a define on llvm-shlib. It is pointless there because there is no code using it in llvm-shlib, and it is better to have it as part of the generated config.h so that it is available everywhere.

llvm-svn: 267490
llvm/include/llvm/Config/config.h.cmake
llvm/tools/llvm-shlib/CMakeLists.txt