Skip to content

Commit adad051

Browse files
committed
[README] Update how to run ctest inside the build directory
1 parent 45550bb commit adad051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ re-run the CMake generation step, a new target named `path.to.file` will be
130130
created, and a test of the same name will also be created. Hence,
131131
```shell
132132
cmake --build build --target path.to.file # Builds the program associated to path/to/file.cpp
133-
cd build && ctest -R path.to.file # Runs the program as a test
133+
ctest --test-dir build -R path.to.file # Runs the program as a test
134134
```
135135
136136
> #### Tip for Sublime Text users

0 commit comments

Comments
 (0)