From 33ee7ad6efa7845d34b666cf3310fca1865b71de Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Mon, 17 Mar 2014 13:41:46 +0000 Subject: [PATCH] Fix typo in documentation and path of execute_test.cmake script. --- cmake/utils.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/utils.cmake b/cmake/utils.cmake index bb6cb18..7351a73 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -67,7 +67,7 @@ endfunction () # # Using PASS_REGULAR_EXPRESSION and FAIL_REGULAR_EXPRESSION would # do as well, but CMake/CTest does not allow us to specify an -# expected exist status. Moreover, the execute_test.cmake script +# expected exit status. Moreover, the execute_test.cmake script # sets environment variables needed by the --fromenv/--tryfromenv tests. macro (add_gflags_test name expected_rc expected_output unexpected_output cmd) add_test ( @@ -76,7 +76,7 @@ macro (add_gflags_test name expected_rc expected_output unexpected_output cmd) "-DEXPECTED_RC:STRING=${expected_rc}" "-DEXPECTED_OUTPUT:STRING=${expected_output}" "-DUNEXPECTED_OUTPUT:STRING=${unexpected_output}" - -P "${PROJECT_SOURCE_DIR}/test/execute_test.cmake" + -P "${CMAKE_CURRENT_LIST_DIR}/execute_test.cmake" WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/test" ) endmacro () -- 2.7.4