Displaying 2 results from an estimated 2 matches for "check_include_file".
Did you mean:
check_exclude_file
2018 Mar 23
0
check_include_file not respecting CMAKE_PREFIX_PATH
...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>
2017 May 29
0
[PATCH] Add CMake build script
...R}/cmake/")
+
+include(CheckIncludeFile)
+include(CheckSymbolExists)
+include(CheckLibraryExists)
+include(CMakeDependentOption)
+include(FeatureSummary)
+include(TestVarArrays)
+include(CheckCCompilerFlag)
+include(GNUInstallDirs)
+include(TestBigEndian)
+
+test_big_endian(WORDS_BIGENDIAN)
+
+check_include_file(inttypes.h HAVE_INTTYPES_H)
+if(HAVE_INTTYPES_H)
+ set(INCLUDE_STDINT "#include <inttypes.h>")
+else()
+ check_include_file(stdint.h HAVE_STDINT_H)
+ if(HAVE_STDINT_H)
+ set(INCLUDE_STDINT "#include <stdint.h>")
+ else()
+ check_include_file(sys/types.h INCLUDE_SYS...