mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Include Highway in build
This commit is contained in:
parent
7f75104d18
commit
bc925d3949
@ -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
|
||||
|
3
setup.py
3
setup.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user