Просмотр исходного кода

Simplify CMake target for the __generated_config header

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290875 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Fiselier 8 лет назад
Родитель
Сommit
a53a02b0da
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      include/CMakeLists.txt

+ 1 - 4
include/CMakeLists.txt

@@ -31,11 +31,8 @@ if (LIBCXX_INSTALL_HEADERS)
     # Generate and install a custom __config header. The new header is created
     # by  prepending __config_site to the current __config header.
     add_custom_command(OUTPUT ${LIBCXX_BINARY_DIR}/__generated_config
-      COMMAND ${CMAKE_COMMAND} -E copy
-        ${LIBCXX_BINARY_DIR}/__config_site
-        ${LIBCXX_BINARY_DIR}/__generated_config
       COMMAND ${PYTHON_EXECUTABLE} ${LIBCXX_SOURCE_DIR}/utils/cat_files.py
-        ${LIBCXX_BINARY_DIR}/__generated_config
+        ${LIBCXX_BINARY_DIR}/__config_site
         ${LIBCXX_SOURCE_DIR}/include/__config
         -o ${LIBCXX_BINARY_DIR}/__generated_config
       DEPENDS ${LIBCXX_SOURCE_DIR}/include/__config