refine cmake for header build

This commit is contained in:
jinjunzh 2023-12-11 17:54:39 -05:00
parent 8b6d6d52d4
commit f90953ccc4

View File

@ -81,7 +81,6 @@ 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 PUBLIC ${QATZSTD_SRC_DIR})
#target_compile_options(_qatzstd_plugin PRIVATE -Wno-zero-as-null-pointer-constant)
target_include_directories(_qatzstd_plugin SYSTEM PUBLIC $<BUILD_INTERFACE:${QATZSTD_SRC_DIR}> $<INSTALL_INTERFACE:include>)
endif ()