Merge pull request #9 from astron-rd/cmake-bugfix

Fix issue when building with TRIGDX_USE_GPU=1
This commit is contained in:
Bram Veenboer
2025-08-12 15:28:47 +02:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
#pragma once #pragma once
#define TRIGDX_USE_MKL @TRIGDX_USE_MKL@ #cmakedefine TRIGDX_USE_MKL
#define TRIGDX_USE_GPU @TRIGDX_USE_GPU@ #cmakedefine TRIGDX_USE_GPU
#define TRIGDX_USE_XSIMD @TRIGDX_USE_XSIMD@ #cmakedefine TRIGDX_USE_XSIMD

View File

@@ -6,14 +6,14 @@
#include <trigdx/lookup.hpp> #include <trigdx/lookup.hpp>
#include <trigdx/lookup_avx.hpp> #include <trigdx/lookup_avx.hpp>
#if TRIGDX_USE_MKL #if defined(TRIGDX_USE_MKL)
#include <trigdx/mkl.hpp> #include <trigdx/mkl.hpp>
#endif #endif
#if TRIGDX_USE_GPU #if defined(TRIGDX_USE_GPU)
#include <trigdx/gpu.hpp> #include <trigdx/gpu.hpp>
#endif #endif
#if TRIGDX_USE_XSIMD #if defined(TRIGDX_USE_XSIMD)
#include <trigdx/lookup_xsimd.hpp> #include <trigdx/lookup_xsimd.hpp>
#endif #endif