spack/var/spack/repos/builtin/packages/plasma/fix_cmake_include.patch
Piotr Luszczek bbdb033e5f Add patches to work around CMake versions (#12744)
- Use of symbol testing macro requires explicit include()
- CMake policies are not version-portable and the support has to queried
  based on CMake version
2019-09-07 19:04:20 -05:00

12 lines
413 B
Diff

diff --git a/Modules/FindMKL.cmake b/Modules/FindMKL.cmake
--- a/Modules/FindMKL.cmake
+++ b/Modules/FindMKL.cmake
@@ -33,6 +33,7 @@
set(MATH_LIB "-lm")
endif ()
set(CMAKE_REQUIRED_LIBRARIES ${BLAS_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIB})
+ include(CheckSymbolExists)
check_symbol_exists(cblas_cgemm mkl.h MKL_WORKS)
unset(CMAKE_REQUIRED_INCLUDES)
unset(CMAKE_REQUIRED_LIBRARIES)