From 12db04f82035bdbc2ae7d8cbd79d686ab8b64584 Mon Sep 17 00:00:00 2001 From: Edwin Vane Date: Thu, 21 Feb 2013 15:12:01 +0000 Subject: [PATCH] Fixing a "multiple rules generate X" warning from ninja CMake's Ninja generator was not detecting that test/lit.site.cfg.in and test/subdir/../lit.site.cfg.in were really the same file. Ninja noticed this and complained as both appeared as targets (for the missing file rule). Now canonicalizing the path to ensure the paths presented to CMake are identical and the duplication is now fixed. llvm-svn: 175744 --- clang-tools-extra/test/cpp11-migrate/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/test/cpp11-migrate/CMakeLists.txt b/clang-tools-extra/test/cpp11-migrate/CMakeLists.txt index 8dd932b..8990d3e 100644 --- a/clang-tools-extra/test/cpp11-migrate/CMakeLists.txt +++ b/clang-tools-extra/test/cpp11-migrate/CMakeLists.txt @@ -53,7 +53,8 @@ add_custom_target(cpp11-migrate-autogen set(TEST_SOURCE_ROOT ${CMAKE_CURRENT_BINARY_DIR}/generated_tests) set(TEST_EXEC_ROOT ${CMAKE_CURRENT_BINARY_DIR}) set(TESTSUITE_NAME "cpp11-migrate Auto-Generated Tests") +get_filename_component(INPUT_LIT_CFG ${CMAKE_CURRENT_SOURCE_DIR}/../lit.site.cfg.in REALPATH) configure_lit_site_cfg( - ${CMAKE_CURRENT_SOURCE_DIR}/../lit.site.cfg.in + ${INPUT_LIT_CFG} ${CMAKE_CURRENT_BINARY_DIR}/generated_tests/lit.site.cfg ) -- 2.7.4