Fix typo in documentation and path of execute_test.cmake script.
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Mon, 17 Mar 2014 13:41:46 +0000 (13:41 +0000)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Mon, 17 Mar 2014 13:41:46 +0000 (13:41 +0000)
cmake/utils.cmake

index bb6cb18..7351a73 100644 (file)
@@ -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 ()