Skip to content

Commit

Permalink
clean up libusb_config when compiling python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Oct 28, 2023
1 parent c19a3cb commit 2a9217c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CMake/external_libusb.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2023 Intel Corporation. All Rights Reserved.

include(ExternalProject)

message( STATUS "Fetching libusb..." )


ExternalProject_Add(
libusb

Expand Down Expand Up @@ -34,3 +40,6 @@ if (APPLE)
find_library(iokit_lib IOKit)
target_link_libraries(usb INTERFACE objc ${corefoundation_lib} ${iokit_lib})
endif()

message( STATUS "Fetching libusb - Done" )

2 changes: 0 additions & 2 deletions CMake/global_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ macro(global_set_flags)
endif()

if(BUILD_PYTHON_BINDINGS)
include(libusb_config)
include(CMake/external_pybind11.cmake)
endif()

Expand Down Expand Up @@ -95,7 +94,6 @@ macro(global_target_config)
${ROSBAG_HEADER_DIRS}
${BOOST_INCLUDE_PATH}
${LZ4_INCLUDE_PATH}
${LIBUSB_LOCAL_INCLUDE_PATH}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
Expand Down

0 comments on commit 2a9217c

Please sign in to comment.