Debian Codegraph @

cmake/modules/Findxsimd.cmake

raw
1 # SPDX-FileCopyrightText: 2022 L. E. Segovia <[email protected]>
2 # SPDX-License-Identifier: BSD-3-Clause
3
4 include(FindPackageHandleStandardArgs)
5
6 find_package(PkgConfig QUIET)
7 pkg_check_modules(PC_xsimd QUIET xsimd)
8
9 find_package(xsimd QUIET NO_MODULE
10 HINTS ${PC_xsimd_CONFIG_DIR} /usr/lib/cmake/xsimd /usr/local/lib/cmake/xsimd
11 )
12
13 if(xsimd_FOUND)
14 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/xsimd")
15 include(xsimdMacros)
16 xsimd_set_preferred_compiler_flags()
17 endif()
18
19 include(FindPackageHandleStandardArgs)
20 find_package_handle_standard_args(xsimd CONFIG_MODE REQUIRED_VARS xsimd_IS_CONFIGURATION_VALID)