Skip to content

Commit

Permalink
Add comment to explain why a flag is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
s-Nick committed Oct 1, 2024
1 parent ae979c6 commit 562f1db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dft/backends/mklgpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ target_include_directories(${LIB_NAME}
PUBLIC ${ONEMKL_INTERFACE_INCLUDE_DIRS}
)

# Due to using the same file name for different headers in this library and in
# MKL Intel library, we force the compiler to follow C++ Core Guideline SF.12
# using the flag "-iquote" to avoid conflicts and find the correct header.
target_compile_options(${LIB_OBJ}
BEFORE PRIVATE -iquote $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
)
Expand Down

0 comments on commit 562f1db

Please sign in to comment.