Skip to content

Commit 77732ce

Browse files
authored
set python executable var to custom cmake commands (#3)
1 parent ad4f243 commit 77732ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rosidl_generator_rs/cmake/custom_command.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
find_package(Python3 REQUIRED COMPONENTS Interpreter)
16+
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
17+
1518
add_custom_command(
1619
OUTPUT
1720
${_generated_common_rs_files}

0 commit comments

Comments
 (0)