Skip to content

Commit 24231d4

Browse files
committed
Fix DEPTHAI_ENABLE_PROTOBUF=OFF BUILD_SHARED_LIBS=OFF case
1 parent 2bcd28c commit 24231d4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,13 @@ include(CMakePackageConfigHelpers)
11471147

11481148
# Add additional targets to export group
11491149
if(NOT BUILD_SHARED_LIBS)
1150-
list(APPEND targets_to_export ${DEPTHAI_RESOURCE_LIBRARY_NAME} cmrc-base foxglove_websocket messages XLink)
1150+
list(APPEND targets_to_export ${DEPTHAI_RESOURCE_LIBRARY_NAME} cmrc-base XLink)
1151+
if(DEPTHAI_ENABLE_PROTOBUF)
1152+
list(APPEND targets_to_export messages)
1153+
endif()
1154+
if(DEPTHAI_ENABLE_REMOTE_CONNECTION)
1155+
list(APPEND targets_to_export foxglove_websocket)
1156+
endif()
11511157
endif()
11521158

11531159
# Export targets (capability to import current build directory)

0 commit comments

Comments
 (0)