Skip to content

Commit 82ae4e5

Browse files
committed
split handling for conan and ros
1 parent 8752ed4 commit 82ae4e5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,12 @@ endif()
147147
if(USE_VENDORED_TINYXML2)
148148
add_subdirectory(3rdparty/tinyxml2)
149149
else()
150-
find_package(tinyxml2_vendor REQUIRED)
151-
find_package(TinyXML2 REQUIRED)
150+
if(USING_ROS2)
151+
find_package(tinyxml2_vendor REQUIRED)
152+
find_package(TinyXML2 REQUIRED)
153+
else()
154+
find_package(tinyxml2 REQUIRED)
155+
endif()
152156
endif()
153157

154158
list(APPEND BT_SOURCE

0 commit comments

Comments
 (0)