summaryrefslogtreecommitdiff
path: root/clang/cmake
diff options
context:
space:
mode:
authorGuillaume Papin <guillaume.papin@epitech.eu>2017-03-21 19:17:53 +0000
committerGuillaume Papin <guillaume.papin@epitech.eu>2017-03-21 19:17:53 +0000
commit5f0f0fc19a89dada10ccc73a231656d6b062f098 (patch)
treed4ee1313e33ffb77e0e0a133174045de739e1072 /clang/cmake
parentd57efcfa02edecdafbba432ef1c0df933653fce1 (diff)
[CMake] fix CLANG_INCLUDE_DIRS CMake export
Summary: This change should fixes the export of CLANG_INCLUDE_DIRS variable in ClangConfig.cmake. Unlike for the other variables, CLANG_INSTALL_PREFIX wasn't escaped meaning CLANG_INCLUDE_DIRS resulting in the path "/include" instead of "${CLANG_INSTALL_PREFIX}/include". Reviewers: beanz Subscribers: mgorny Differential Revision: https://reviews.llvm.org/D30911
Diffstat (limited to 'clang/cmake')
-rw-r--r--clang/cmake/modules/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/cmake/modules/CMakeLists.txt b/clang/cmake/modules/CMakeLists.txt
index 59176a2b809..be6d1d7257b 100644
--- a/clang/cmake/modules/CMakeLists.txt
+++ b/clang/cmake/modules/CMakeLists.txt
@@ -42,7 +42,7 @@ set(CLANG_CONFIG_CMAKE_DIR "\${CLANG_INSTALL_PREFIX}/${CLANG_INSTALL_PACKAGE_DIR
set(CLANG_CONFIG_LLVM_CMAKE_DIR "\${CLANG_INSTALL_PREFIX}/${LLVM_INSTALL_PACKAGE_DIR}")
set(CLANG_CONFIG_EXPORTS_FILE "\${CLANG_CMAKE_DIR}/ClangTargets.cmake")
set(CLANG_CONFIG_INCLUDE_DIRS
- "${CLANG_INSTALL_PREFIX}/include"
+ "\${CLANG_INSTALL_PREFIX}/include"
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/ClangConfig.cmake.in