From dd8478422a4d6c76b421569588efda00bee2022a Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Fri, 2 Sep 2022 14:15:18 +0200 Subject: [PATCH] Fix usage of generator expressions for libcxx cmake Before, if you store clickhouse sources in /src, there was a typo and it produce the following error: CMake Error in contrib/libcxx-cmake/CMakeLists.txt: Target "cxx" INTERFACE_INCLUDE_DIRECTORIES property contains path: "/src" which is prefixed in the source directory. Also move "src" into PRIVATE, since it is required only for libcxx itself. Signed-off-by: Azat Khuzhin --- contrib/libcxx-cmake/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/libcxx-cmake/CMakeLists.txt b/contrib/libcxx-cmake/CMakeLists.txt index a501c4df64f..6f42a479588 100644 --- a/contrib/libcxx-cmake/CMakeLists.txt +++ b/contrib/libcxx-cmake/CMakeLists.txt @@ -54,9 +54,8 @@ set(SRCS add_library(cxx ${SRCS}) set_target_properties(cxx PROPERTIES FOLDER "contrib/libcxx-cmake") -target_include_directories(cxx SYSTEM BEFORE PUBLIC - $ - $/src) +target_include_directories(cxx SYSTEM BEFORE PRIVATE $) +target_include_directories(cxx SYSTEM BEFORE PUBLIC $) target_compile_definitions(cxx PRIVATE -D_LIBCPP_BUILDING_LIBRARY -DLIBCXX_BUILDING_LIBCXXABI) # Enable capturing stack traces for all exceptions.