Zha*_*Chn 3 c cmake
在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()
bas*_*h0r 8
这很容易: message( FATAL_ERROR "Your message" )
message( FATAL_ERROR "Your message" )
归档时间:
12 年,9 月 前
查看次数:
2431 次
最近记录:
9 年,6 月 前