refine cmake for header

This commit is contained in:
jinjunzh 2023-12-11 16:37:49 -05:00
parent 4ba36f2761
commit 8b6d6d52d4

View File

@ -81,6 +81,7 @@ target_include_directories(_qatzstd_plugin PRIVATE
${LIBQAT_HEADER_DIR})
target_compile_definitions(_qatzstd_plugin PRIVATE -DDEBUGLEVEL=0 PUBLIC -DENABLE_QATZSTD_COMPRESSION -DINTREE)
add_library (ch_contrib::qatzstd_plugin ALIAS _qatzstd_plugin)
target_include_directories(_qatzstd_plugin SYSTEM BEFORE PUBLIC ${QATZSTD_SRC_DIR})
target_include_directories(_qatzstd_plugin SYSTEM PUBLIC ${QATZSTD_SRC_DIR})
#target_compile_options(_qatzstd_plugin PRIVATE -Wno-zero-as-null-pointer-constant)
endif ()