[llvm-dev] check_include_file not respecting CMAKE_PREFIX_PATH

Andrew Kelley via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 23 13:58:08 PDT 2018


$ file /home/andy/misc/bootstrap/out/native/include/zlib.h
/home/andy/misc/bootstrap/out/native/include/zlib.h: C source, ASCII text


$ 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; \


-- Looking for zlib.h - not found



I propose to use find_path and find_library instead of check_include_file.
Shall I submit a patch?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180323/99c595de/attachment.html>


More information about the llvm-dev mailing list