Skip to content

Commit

Permalink
[add_launch_test] Correct default python executable for windows debug (
Browse files Browse the repository at this point in the history
…#239)

* Correct add_launch_test macro in windows debug

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>

* Use 'namespace' variable when setting Python exectuble

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
ivanpauno authored and jacobperron committed May 20, 2019
1 parent c0abf15 commit 09d0952
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions launch_testing_ament_cmake/cmake/add_launch_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ macro(parse_launch_test_arguments namespace filename)

if(NOT ${namespace}_PYTHON_EXECUTABLE)
set(${namespace}_PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}")
if(WIN32)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(${namespace}_PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE_DEBUG}")
endif()
endif()
endif()

set(${namespace}_FILE_NAME NOTFOUND)
Expand Down

0 comments on commit 09d0952

Please sign in to comment.