diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-04-30 14:54:40 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-05-06 07:19:38 +0000 |
commit | d4164da52e6ff42e19151231811fd45278889e69 (patch) | |
tree | 0b80623657633d40fa8705d04d86ba1dc47f9518 /src | |
parent | 02efd431998f399017075cc283db27409835337e (diff) | |
download | qt-creator-d4164da52e6ff42e19151231811fd45278889e69.tar.gz |
CMake build: Fix copying of Clang headers to build
- "copy_directory dir target_dir" copies the contents of "dir" into "target_dir"
so we need to specify "include" at the end of the target directory
- copy_directory creates directories as needed
Fixes code model and analyzer errors when running without previous deployment
Fixes: QTCREATORBUG-23910
Change-Id: Id63dd790f89f720593cd0508241f79dfaddac794
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/clangsupport/CMakeLists.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libs/clangsupport/CMakeLists.txt b/src/libs/clangsupport/CMakeLists.txt index 093213147b..20af2c1b9d 100644 --- a/src/libs/clangsupport/CMakeLists.txt +++ b/src/libs/clangsupport/CMakeLists.txt @@ -154,12 +154,9 @@ add_custom_target(copy_clang_to_builddir ALL # For the developer build directory add_custom_command(TARGET copy_clang_to_builddir POST_BUILD COMMAND "${CMAKE_COMMAND}" - -E make_directory - "${PROJECT_BINARY_DIR}/${IDE_LIBEXEC_PATH}/clang/lib/clang/${CLANG_VERSION}" - COMMAND "${CMAKE_COMMAND}" -E copy_directory "${LLVM_LIBRARY_DIR}/clang/${CLANG_VERSION}/include" - "${PROJECT_BINARY_DIR}/${IDE_LIBEXEC_PATH}/clang/lib/clang/${CLANG_VERSION}" + "${PROJECT_BINARY_DIR}/${IDE_LIBEXEC_PATH}/clang/lib/clang/${CLANG_VERSION}/include" VERBATIM ) |