Skip to content

Commit bc62b38

Browse files
Allow to disable AubStream
Change-Id: I442e0f14d65099d245b54ec29cb3c7c7098f6cef Signed-off-by: Dunajski, Bartosz <[email protected]>
1 parent 30c57fd commit bc62b38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,14 @@ else()
121121
message(FATAL_ERROR "Aub Stream headers not available!")
122122
endif()
123123

124-
if(NOT DEFINED AUB_STREAM_DIR)
124+
if(NOT DEFINED AUB_STREAM_DIR AND NOT DISABLE_AUB_STREAM)
125125
get_filename_component(TEMP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../aub_stream/aub_mem_dump" ABSOLUTE)
126126
if(IS_DIRECTORY ${TEMP_DIR})
127127
set(AUB_STREAM_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../aub_stream")
128128
message(STATUS "Aub Stream dir: ${AUB_STREAM_DIR}")
129129
endif()
130+
else()
131+
unset(AUB_STREAM_DIR)
130132
endif(NOT DEFINED AUB_STREAM_DIR)
131133

132134
if(LIBDRM_DIR)

0 commit comments

Comments
 (0)