Fix warning in the CMake build about redefining LLVM_PATH_XDOT_PY by making sure...
authorFrits van Bommel <fvbommel@gmail.com>
Wed, 25 May 2011 06:32:23 +0000 (06:32 +0000)
committerFrits van Bommel <fvbommel@gmail.com>
Wed, 25 May 2011 06:32:23 +0000 (06:32 +0000)
In file included from .../llvm/trunk/tools/lto/LTOCodeGenerator.cpp:45:
In file included from .../llvm/trunk/include/llvm/Support/system_error.h:225:
.../include/llvm/Config/config.h:591:9: warning: 'LLVM_PATH_XDOT_PY' macro redefined
#define LLVM_PATH_XDOT_PY ".../bin/xdot.py"
        ^
.../include/llvm/Config/llvm-config.h:98:9: note: previous definition is here
#define LLVM_PATH_XDOT_PY ""
        ^
1 warning generated.

(Paths edited for clarity)

Note: This only affected people who had xdot.py installed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132050 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Config/llvm-config.h.cmake

index 9a9cb3b739ea3e10307e5fc9f41136751c861695..ee81f7a73243536f18371c41d47cb70263923e8c 100644 (file)
@@ -95,7 +95,7 @@
 #cmakedefine LLVM_PATH_TWOPI "${LLVM_PATH_TWOPI}"
 
 /* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */
-#cmakedefine LLVM_PATH_XDOT_PY "${LLVM_PATH_XDOT.PY}"
+#cmakedefine LLVM_PATH_XDOT_PY "${LLVM_PATH_XDOT_PY}"
 
 /* Installation prefix directory */
 #cmakedefine LLVM_PREFIX "${LLVM_PREFIX}"