diff options
author | Edwin Vane <edwin.vane@intel.com> | 2013-02-21 15:12:01 +0000 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2013-02-21 15:12:01 +0000 |
commit | 06f93f115eb1db60224a4f13df192f67401f7b45 (patch) | |
tree | 53a582d5277646a72805fa96669d70380d601429 /test | |
parent | 931b2c7a85168fdc7b4d536cbafc620503a949f2 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@175744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp11-migrate/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp11-migrate/CMakeLists.txt b/test/cpp11-migrate/CMakeLists.txt index 8dd932b1..8990d3ef 100644 --- a/test/cpp11-migrate/CMakeLists.txt +++ b/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 ) |