pytorch/cmake
Bas Zalmstra a8eac0efa8 fix: unknown CMake command "check_function_exists" (#126165)
When building pytorch with OpenBLAS on windows I ran into this CMake issue:

```
CMake Error at cmake/Modules/FindLAPACK.cmake:137 (check_function_exists):
  Unknown CMake command "check_function_exists".
Call Stack (most recent call first):
  cmake/Dependencies.cmake:1745 (find_package)
  CMakeLists.txt:708 (include)
```

Similarly described here: https://discuss.pytorch.org/t/cmake-with-error-by-compiling-on-windows-with-mingw32-make/159140

This PR fixes this issue by adding:

```
include(CheckFunctionExists)
```

To the offending CMake file.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/126165
Approved by: https://github.com/ezyang
2024-05-14 20:54:06 +00:00
..
External Remove cuda dependencies when building AOTriton (#122982) 2024-04-01 17:50:35 +00:00
Modules fix: unknown CMake command "check_function_exists" (#126165) 2024-05-14 20:54:06 +00:00
Modules_CUDA_fix Allow building for sm90a (#125523) 2024-05-06 20:03:12 +00:00
public [ROCm] enforce ROCM_VERSION >= 6.0 (#125646) 2024-05-12 18:01:28 +00:00
Allowlist.cmake
BuildVariables.cmake
Caffe2Config.cmake.in
CheckAbi.cmake
cmake_uninstall.cmake.in
Codegen.cmake
DebugHelper.cmake
Dependencies.cmake Remove caffe2 from more build files (#125898) 2024-05-13 18:37:59 +00:00
FlatBuffers.cmake
GoogleTestPatch.cmake
IncludeSource.cpp.in
iOS.cmake
Metal.cmake
MiscCheck.cmake
prioritized_text.txt [Build] Add linker script optimization (#121975) 2024-04-09 20:22:25 +00:00
ProtoBuf.cmake
ProtoBufPatch.cmake
Summary.cmake Remove caffe2 from more build files (#125898) 2024-05-13 18:37:59 +00:00
TorchConfig.cmake.in Remove caffe2 from more build files (#125898) 2024-05-13 18:37:59 +00:00
TorchConfigVersion.cmake.in
VulkanCodegen.cmake
VulkanDependencies.cmake