Skip to content

Commit

Permalink
Update default WORKING_DIRECTORY for ament_add_gtest() (ros2#3117)
Browse files Browse the repository at this point in the history
  • Loading branch information
icolwell-as authored Oct 21, 2022
1 parent 87bf20a commit 87ab121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/How-To-Guides/Ament-CMake-Documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ The macros have additional parameters:

- ``WORKING_DIRECTORY``: set the working directory for the test.

The default working directory otherwise is the ``CMAKE_SOURCE_DIR``, which will be evaluated to the directory of the top-level ``CMakeLists.txt``.
The default working directory otherwise is the ``CMAKE_CURRENT_BINARY_DIR``, which is described in the `CMake documentation <https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_BINARY_DIR.html>`_.

Similarly, there is a CMake macro to set up GTest including GMock:

Expand Down

0 comments on commit 87ab121

Please sign in to comment.