Skip to content

Commit

Permalink
[build] Warning Suppression PR taichi-dev#2: Eliminate warnings from …
Browse files Browse the repository at this point in the history
…third-party headers
  • Loading branch information
jim19930609 committed May 6, 2022
1 parent d73d236 commit c6ba16b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/TaichiCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ if (TI_WITH_VULKAN)

target_include_directories(${CORE_LIBRARY_NAME} PRIVATE external/SPIRV-Headers/include)
target_include_directories(${CORE_LIBRARY_NAME} PRIVATE external/SPIRV-Reflect)
target_include_directories(${CORE_LIBRARY_NAME} PRIVATE external/VulkanMemoryAllocator/include)

# By specifying SYSTEM, we suppressed the warnings from third-party headers.
target_include_directories(${CORE_LIBRARY_NAME} SYSTEM PRIVATE external/VulkanMemoryAllocator/include)

if (LINUX)
# shaderc requires pthread
Expand Down

0 comments on commit c6ba16b

Please sign in to comment.