From 4b8dc0884b0293002a021cf3c6337cc2b399d06e Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sun, 22 Sep 2024 17:08:57 +0800 Subject: [PATCH] update --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8dd4eb..f7394fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,12 @@ add_subdirectory(pybind11) include_directories(src/tools) +if(MSVC) + add_compile_options(/openmp:llvm) +else() + add_compile_options(-fopenmp) +endif() + file(GLOB SRC CONFIGURE_DEPENDS src/*.cpp src/*.h src/*.hpp) add_executable(${PROJECT_NAME}_bin ${SRC})