[CMake] Move BUG_REPORT_URL from clang to llvm.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 13 Jan 2014 05:25:13 +0000 (05:25 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 13 Jan 2014 05:25:13 +0000 (05:25 +0000)
It was too late to set BUG_REPORT_URL after configure_file(config.h).
BUG_REPORT_URL in config.h.cmake would be updated at 2nd run of cmake.
It caused many recompilations.

FYI, configure handles BUG_REPORT_URL in llvm side.

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

CMakeLists.txt

index ad31686aafc03096aa84f8e771c446c3684fd8b6..949abe1e6d77337837ce68e88909e6e2cba02637 100644 (file)
@@ -37,6 +37,9 @@ set(PACKAGE_NAME LLVM)
 set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
 set(PACKAGE_BUGREPORT "http://llvm.org/bugs/")
 
+set(BUG_REPORT_URL "${PACKAGE_BUGREPORT}" CACHE STRING
+  "Default URL where bug reports are to be submitted.")
+
 # Configure CPack.
 set(CPACK_PACKAGE_INSTALL_DIRECTORY "LLVM")
 set(CPACK_PACKAGE_VENDOR "LLVM")