I have this if-statement from a Makefile
ifneq ($(shell test -e /usr/include/linux/signalfd.h && echo 1),)
CFLAGS += -DUSE_SIGNALFD
endif
trying to translate it to cmake but not sure what is the best way.
I know that I would have to add a target_compile_definitions(tgtd PRIVATE -DUSE_SIGNALF)
not sure how to work with CHECK_LIBRARY_EXISTS
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…