Include Highway in build

This commit is contained in:
Andrew Cassidy 2022-05-15 00:43:28 -07:00
parent 7f75104d18
commit bc925d3949
2 changed files with 8 additions and 0 deletions

View File

@ -2,12 +2,17 @@ cmake_minimum_required(VERSION 3.18)
include(tools/CompilerWarnings.cmake)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(HWY_ENABLE_INSTALL OFF)
set(HWY_ENABLE_EXAMPLES OFF)
option(BUILD_TESTING "" OFF)
project(quicktex)
# Find dependencies
find_package(Python COMPONENTS Interpreter Development.Module)
find_package(pybind11 CONFIG REQUIRED)
find_package(OpenMP)
add_subdirectory(external/highway)
# Collect source files
file(GLOB SOURCE_FILES

View File

@ -54,6 +54,9 @@ class CMakeBuild(build_ext):
]
build_args = []
if self.verbose:
build_args += ["--verbose"]
if self.compiler.compiler_type != "msvc":
# Using Ninja-build since it a) is available as a wheel and b)
# multithreads automatically. MSVC would require all variables be