diff options
author | Brad King <brad.king@kitware.com> | 2014-06-06 14:39:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-06 14:39:45 (GMT) |
commit | 218699eb2827ca5f6082b1f9e1e84238cb301155 (patch) | |
tree | 5b17d887d42a6f1a69fd350d05885e003662cd2e /Tests/CMakeLib/CMakeLists.txt | |
parent | 618b7df5bf7767561822c1673a9640860a2613a1 (diff) | |
download | CMake-218699eb2827ca5f6082b1f9e1e84238cb301155.zip CMake-218699eb2827ca5f6082b1f9e1e84238cb301155.tar.gz CMake-218699eb2827ca5f6082b1f9e1e84238cb301155.tar.bz2 |
Tests: Fix CMakeLib.testRST for relative __FILE__
Pass the test input directory as a runtime argument instead of
depending on __FILE__ to locate it.
Diffstat (limited to 'Tests/CMakeLib/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLib/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CMakeLib/CMakeLists.txt b/Tests/CMakeLib/CMakeLists.txt index 0e1fe8d..8c99f64 100644 --- a/Tests/CMakeLib/CMakeLists.txt +++ b/Tests/CMakeLib/CMakeLists.txt @@ -13,6 +13,8 @@ set(CMakeLib_TESTS testXMLSafe ) +set(testRST_ARGS ${CMAKE_CURRENT_SOURCE_DIR}) + if(WIN32) list(APPEND CMakeLib_TESTS testVisualStudioSlnParser @@ -39,7 +41,7 @@ if(CMAKE_OSX_ARCHITECTURES AND XCODE endif() foreach(test ${CMakeLib_TESTS}) - add_test(CMakeLib.${test} CMakeLibTests ${test}) + add_test(CMakeLib.${test} CMakeLibTests ${test} ${${test}_ARGS}) endforeach() if(TEST_CompileCommandOutput) |