BUILD_INTERFACE fatal error: 'hiredis/hiredis.h' file not found
Author: Portgas-D-AsceCreated Jul 25, 2024Updated Jul 26, 2024
a strange thing in
TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)in INSTALL_INTERFACE, using #include <hiredis/hiredis.h> is ok
in BUILD_INTERFACE, I have to change it to #include <hiredis.h>
keep them same maybe better
Source: redis/hiredis