<div dir="ltr"><div>$ file /home/andy/misc/bootstrap/out/native/include/zlib.h<br>/home/andy/misc/bootstrap/out/native/include/zlib.h: C source, ASCII text<br><br><br>$ cmake /home/andy/misc/bootstrap/llvm-6.0.0.src -DCMAKE_PREFIX_PATH=/home/andy/misc/bootstrap/out/native -DCMAKE_INSTALL_PREFIX=/home/andy/misc/bootstrap/out/native -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly; \<br><br><br>-- Looking for zlib.h - not found<br><br><br><br></div>I propose to use find_path and find_library instead of check_include_file. Shall I submit a patch?<br></div>