mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 10:28:59 +08:00
982a49ec9c
* [blas] Add wrapper to ignore intel-mkl * VCPKG_INSTALLED_DIR
16 lines
529 B
CMake
16 lines
529 B
CMake
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/blas")
|
|
|
|
# Make sure BLAS can be found
|
|
vcpkg_list(SET CMAKE_IGNORE_PATH)
|
|
if(NOT DEFINED ENV{MKLROOT})
|
|
list(APPEND CMAKE_IGNORE_PATH "${CURRENT_INSTALLED_DIR}/lib/intel64")
|
|
endif()
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${CURRENT_PORT_DIR}"
|
|
OPTIONS
|
|
"-DCMAKE_PREFIX_PATH=${CURRENT_PACKAGES_DIR}"
|
|
"-DCMAKE_IGNORE_PATH=${CMAKE_IGNORE_PATH}"
|
|
)
|