Skip to content

HIP: Fix implicit include directory detection under /usr/include

Brad King requested to merge brad.king/cmake:hip-usr-include into master

The CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES are computed using try_compile in CMAKE_DETERMINE_COMPILER_ABI, but the implicit include directories are not known during that try_compile. This can be a problem when the HIP runtime include path is /usr/include, because the runtime include path is always added to the userDirs and the compiler automatically includes standard library headers via __clang_hip_runtime_wrapper.h.

Issue: #24562 (closed)
Author: @cgmb
Supersedes: !8356 (closed)

Merge request reports