vcpkg/ports/isal/isalConfig.cmake
Kai Pastor 1b0252ca70
[isal] Update port to 2.30.0 (#26198)
* CI test isal, not spdk-isal

* Update to 2.30.0

* The nmake build uses only nasm

The autotools build chooses the tool by feature level.
It even requires yasm for mingw.

* Relax platform restriction

* Fix mingw builds

* Fixup pkgconfig

* Rewrite CMake config, move to unofficial namespace

* Update versions
2022-08-22 13:02:53 -07:00

16 lines
670 B
CMake

message(WARNING "'find_package(isal CONFIG)' is deprecated. Please use 'find_package(unofficial-isal CONFIG)' instead.")
include(CMakeFindDependencyMacro)
find_dependency(unofficial-isal)
if(NOT TARGET unofficial::isal::isal)
set(isal_FOUND FALSE)
elseif(TARGET ISAL::isa-l OR TARGET ISAL::isal)
# done
elseif ("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
add_library(ISAL::isa-l INTERFACE IMPORTED)
set_target_properties(ISAL::isa-l PROPERTIES INTERFACE_LINK_LIBRARIES unofficial::isal::isal)
else()
add_library(ISAL::isal INTERFACE IMPORTED)
set_target_properties(ISAL::isal PROPERTIES INTERFACE_LINK_LIBRARIES unofficial::isal::isal)
endif()