From ed737d7881ebdadf7d66a03a8502e3899f162ade Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Mon, 25 Apr 2016 23:02:47 +0000 Subject: [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/tools/llvm-shlib/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) (limited to 'llvm/tools/llvm-shlib') diff --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt index 2356103a9cd..3fe672d679a 100644 --- a/llvm/tools/llvm-shlib/CMakeLists.txt +++ b/llvm/tools/llvm-shlib/CMakeLists.txt @@ -2,8 +2,6 @@ # library is enabled by setting LLVM_BUILD_LLVM_DYLIB=yes on the CMake # commandline. By default the shared library only exports the LLVM C API. -add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" ) - set(SOURCES libllvm.cpp ) -- cgit v1.2.3