This question shows research effort; it is useful and clear
5
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
在 CMakeLists.txt 中,我想检查 bzlib.h 是否存在:
include(CheckIncludeFiles)
check_include_file(bzlib.h HAVE_BZLIB_H)
if(NOT HAVE_BZLIB_H)
# How can I exit cmake with an error message if bzlib.h does not exists?
endif()