mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
cmake: move jinja2 check to Python modules
This removes the cmake check for jinja2 and moves it to the respective Python scripts.
This commit is contained in:
@@ -263,10 +263,9 @@ if (CATKIN_DEVEL_PREFIX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# python
|
||||
# Python
|
||||
# If using catkin, Python 2 is found since it points
|
||||
# to the Python libs installed with the ROS distro
|
||||
include(px4_find_python_module)
|
||||
if (NOT CATKIN_DEVEL_PREFIX)
|
||||
find_package(PythonInterp 3 REQUIRED)
|
||||
else()
|
||||
@@ -277,9 +276,6 @@ option(PYTHON_COVERAGE "Python code coverage" OFF)
|
||||
if(PYTHON_COVERAGE)
|
||||
message(STATUS "python coverage enabled")
|
||||
set(PYTHON_EXECUTABLE coverage run -p)
|
||||
else()
|
||||
# run normally (broken under coveragepy)
|
||||
px4_find_python_module(jinja2 REQUIRED)
|
||||
endif()
|
||||
|
||||
#=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user