Skip to content

Commit d7dcaf1

Browse files
authored
Merge pull request #222 from kevinch-nv/streamline-samples-build
Remove third party dependencies when building only samples
2 parents 77af534 + a3a3bc1 commit d7dcaf1

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)