Skip to content

Commit

Permalink
get python debug executable from pythonextra
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelarguedas committed Jun 14, 2018
1 parent 18bdff8 commit a3aea36
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ project(test_cli)
find_package(ament_cmake_auto REQUIRED)

if(BUILD_TESTING)
# Provides PYTHON_EXECUTABLE_DEBUG
find_package(python_cmake_module REQUIRED)
find_package(PythonExtra REQUIRED)
set(_PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}")
if(WIN32)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
Expand Down
1 change: 1 addition & 0 deletions test_cli/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>python_cmake_module</buildtool_depend>

<build_depend>ament_cmake</build_depend>

Expand Down
3 changes: 3 additions & 0 deletions test_cli_remapping/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ project(test_cli_remapping)
find_package(ament_cmake_auto REQUIRED)

if(BUILD_TESTING)
# Provides PYTHON_EXECUTABLE_DEBUG
find_package(python_cmake_module REQUIRED)
find_package(PythonExtra REQUIRED)
set(_PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}")
if(WIN32)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
Expand Down
1 change: 1 addition & 0 deletions test_cli_remapping/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>python_cmake_module</buildtool_depend>

<build_depend>ament_cmake</build_depend>

Expand Down
4 changes: 4 additions & 0 deletions test_communication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ if(BUILD_TESTING)

find_package(ament_cmake_pytest REQUIRED)

# Provides PYTHON_EXECUTABLE_DEBUG
find_package(python_cmake_module REQUIRED)
find_package(PythonExtra REQUIRED)

# get the rmw implementations ahead of time
find_package(rmw_implementation_cmake REQUIRED)
get_available_rmw_implementations(rmw_implementations2)
Expand Down
1 change: 1 addition & 0 deletions test_communication/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<build_depend>rosidl_default_generators</build_depend>

<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>python_cmake_module</buildtool_depend>

<exec_depend>builtin_interfaces</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>
Expand Down

0 comments on commit a3aea36

Please sign in to comment.