build: Use custom jthread implementation if standard one is not available

This commit is contained in:
WerWolv
2023-11-02 20:21:38 +01:00
parent eefdbe7ef1
commit 407ec1ceb6
11 changed files with 37 additions and 10 deletions

6
lib/external/jthread/CMakeLists.txt vendored Normal file
View File

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

View File

@@ -0,0 +1,7 @@
#pragma once
#if __has_include(<jthread>)
#include <jthread>
#else
#include "../jthread/source/jthread.hpp"
#endif

1
lib/external/jthread/jthread vendored Submodule