Avoid multiple definition warnings when both config.h and
[oota-llvm.git] / include / llvm / Config / llvm-config.h.cmake
index c277ef2b2077983f984d6162cfe5441f672e8108..b68592a64a0af67da679c262801cbc9749100662 100644 (file)
    they can be in exported headers and won't override package specific
    directives.  This is a C file so we can include it in the llvm-c headers.  */
 
+/* To avoid multiple inclusions of these variables when we include the exported
+   headers and config.h, conditionally include these.  */
+/* TODO: This is a bit of a hack.  */
+#ifndef CONFIG_H
+
 /* Installation directory for binary executables */
 #cmakedefine LLVM_BINDIR "${LLVM_BINDIR}"
 
@@ -82,3 +87,5 @@
 
 /* Installation prefix directory */
 #cmakedefine LLVM_PREFIX "${LLVM_PREFIX}"
+
+#endif