Skip to content

Commit a3a3bc1

Browse files
committed
Remove third party dependencies when building only samples
1 parent 77af534 commit a3a3bc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ endif()
107107

108108

109109
find_package(Threads REQUIRED)
110-
include(third_party/zlib.cmake)
111-
include(third_party/protobuf.cmake)
110+
if (BUILD_PLUGINS OR BUILD_PARSERS)
111+
include(third_party/zlib.cmake)
112+
include(third_party/protobuf.cmake)
113+
endif()
112114
if (NVINTERNAL)
113115
########################################### DEPENDENCIES FOR BUILDING IN NVIDIA's TREE ############################################
114116
set(EXTERNALS ${PROJECT_SOURCE_DIR}/../externals)

0 commit comments

Comments
 (0)