build: Move jthread library to libwolv

This commit is contained in:
WerWolv
2025-09-24 20:48:50 +02:00
parent 265360229f
commit 1b6a150624
6 changed files with 2 additions and 36 deletions

View File

@@ -1,6 +0,0 @@
cmake_minimum_required(VERSION 3.16)
project(jthread)
add_library(jthread INTERFACE)
target_include_directories(jthread INTERFACE includes)

View File

@@ -1,11 +0,0 @@
#pragma once
#if __cpp_lib_jthread >= 201911L
#include <thread>
#else
#define __stop_callback_base __stop_callback_base_j
#define __stop_state __stop_state_j
#include "../jthread/source/jthread.hpp"
#undef __stop_callback_base
#undef __stop_state
#endif