vcpkg/ports/blas/vcpkg-cmake-wrapper.cmake
Kai Pastor 982a49ec9c
[baseline][blas] Don't pick intel-mkl (#30421)
* [blas] Add wrapper to ignore intel-mkl

* VCPKG_INSTALLED_DIR
2023-03-27 11:33:29 -07:00

10 lines
343 B
CMake

if(NOT DEFINED ENV{MKLROOT})
set(z_vcpkg_blas_ignore_path "${CMAKE_IGNORE_PATH}")
list(APPEND CMAKE_IGNORE_PATH "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/intel64")
endif()
_find_package(${ARGS})
if(NOT DEFINED ENV{MKLROOT})
set(CMAKE_IGNORE_PATH "${z_vcpkg_blas_ignore_path}")
unset(z_vcpkg_blas_ignore_path)
endif()