Silence -Wunused-variable in release builds.
[llvm/stm8.git] / cmake / modules / CMakeLists.txt
blob257deb6d4c7a6c39340b3b696107b103636b130a
1 set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm/cmake")
2 set(LLVM_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
4 get_property(llvm_libs GLOBAL PROPERTY LLVM_LIBS)
6 configure_file(
7   LLVMConfig.cmake.in
8   ${llvm_cmake_builddir}/LLVMConfig.cmake
9   @ONLY)
11 configure_file(
12   LLVMConfigVersion.cmake.in
13   ${llvm_cmake_builddir}/LLVMConfigVersion.cmake
14   @ONLY)
16 install(FILES
17   ${llvm_cmake_builddir}/LLVMConfig.cmake
18   ${llvm_cmake_builddir}/LLVMConfigVersion.cmake
19   LLVM-Config.cmake
20   LLVMLibDeps.cmake
21   DESTINATION share/llvm/cmake)
23 install(DIRECTORY .
24   DESTINATION share/llvm/cmake
25   FILES_MATCHING PATTERN *.cmake
26   PATTERN .svn EXCLUDE
27   PATTERN LLVMConfig.cmake EXCLUDE
28   PATTERN LLVMConfigVersion.cmake EXCLUDE
29   PATTERN LLVM-Config.cmake EXCLUDE
30   PATTERN LLVMLibDeps.cmake EXCLUDE
31   PATTERN FindBison.cmake EXCLUDE
32   PATTERN GetTargetTriple.cmake EXCLUDE
33   PATTERN VersionFromVCS.cmake EXCLUDE
34   PATTERN CheckAtomic.cmake EXCLUDE)