Skip to content

Commit 46c13b6

Browse files
authored
Add option ENABLE_ROCDECODE when buildling rocm-examples to give users option to not build any rocdecode tests (#433)
Needed as a workaround for ROCM-20107.
1 parent 261f694 commit 46c13b6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Libraries/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,14 @@ if(
6363
add_subdirectory(rocALUTION)
6464
add_subdirectory(rocBLAS)
6565
add_subdirectory(rocCV)
66-
add_subdirectory(rocDecode)
66+
67+
option(ENABLE_ROCDECODE "Enable rocDecode examples (enabled by default)" ON)
68+
if(ENABLE_ROCDECODE)
69+
add_subdirectory(rocDecode)
70+
else()
71+
message(STATUS "rocDecode examples disabled, not building rocDecode examples.")
72+
endif()
73+
6774
add_subdirectory(rocJPEG)
6875
add_subdirectory(rocFFT)
6976
add_subdirectory(rocPRIM)

0 commit comments

Comments
 (0)