We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5603cbd + dc6d65c commit 830b6f8Copy full SHA for 830b6f8
amd/comgr/CMakeLists.txt
@@ -178,9 +178,12 @@ message("")
178
option(COMGR_DISABLE_SPIRV "To disable SPIRV in Comgr" OFF)
179
180
if (NOT COMGR_DISABLE_SPIRV)
181
- CHECK_INCLUDE_FILE_CXX(LLVMSPIRVLib/LLVMSPIRVLib.h HAVE_LLVMSPIRVLIB_H)
182
- if (NOT HAVE_LLVMSPIRVLIB_H)
+ # TODO: Explore switching this to CHECK_INCLUDE_FILE_CXX() macro
+ if (NOT EXISTS "${LLVM_INCLUDE_DIRS}/LLVMSPIRVLib/LLVMSPIRVLib.h")
183
+ message("-- LLVMSPIRVLib/LLVMSPIRVLib.h not found")
184
set(COMGR_DISABLE_SPIRV ON)
185
+ else()
186
+ message("-- LLVMSPIRVLib/LLVMSPIRVLib.h found")
187
endif()
188
189
0 commit comments