mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Fix build error on some platforms
Update build scripts.
This commit is contained in:
parent
9797197c85
commit
c35714ba48
@ -26,6 +26,11 @@ RUN apk add --no-cache --virtual .build-tools git g++ build-base linux-headers c
|
||||
install -d /usr/include/date/ && \
|
||||
install -m644 libcron/externals/date/include/date/* /usr/include/date/ && \
|
||||
cd .. && \
|
||||
git clone https://github.com/ToruNiina/toml11 --depth=1 && \
|
||||
cd toml11 && \
|
||||
cmake . && \
|
||||
make install -j4 && \
|
||||
cd .. && \
|
||||
git clone https://github.com/tindy2013/subconverter --depth=1 && \
|
||||
cd subconverter && \
|
||||
cmake -DCMAKE_BUILD_TYPE=Release . && \
|
||||
|
||||
@ -921,7 +921,7 @@ template <class T, class... U>
|
||||
void find_if_exist(const toml::value &v, const toml::key &k, T& target, U&&... args)
|
||||
{
|
||||
if(v.contains(k)) target = toml::find<T>(v, k);
|
||||
if constexpr (sizeof...(args)) find_if_exist(v, std::forward<U>(args)...);
|
||||
if constexpr (sizeof...(args) > 0) find_if_exist(v, std::forward<U>(args)...);
|
||||
}
|
||||
|
||||
std::string join(const string_array &arr, const std::string &delimiter = "|")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user