mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-27 11:52:32 +00:00
Fix build (#563)
ref ToruNiina/toml11/commit/22db720ad55c3470c4d036ae74be35e68c761845
This commit is contained in:
@@ -30,17 +30,12 @@ git clone https://github.com/PerMalmberg/libcron --depth=1
|
||||
cd libcron
|
||||
git submodule update --init
|
||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||
make libcron -j2
|
||||
install -m644 libcron/out/Release/liblibcron.a /usr/lib/
|
||||
install -d /usr/include/libcron/
|
||||
install -m644 libcron/include/libcron/* /usr/include/libcron/
|
||||
install -d /usr/include/date/
|
||||
install -m644 libcron/externals/date/include/date/* /usr/include/date/
|
||||
make libcron install -j2
|
||||
cd ..
|
||||
|
||||
git clone https://github.com/ToruNiina/toml11 --depth=1
|
||||
cd toml11
|
||||
cmake .
|
||||
cmake -DCMAKE_CXX_STANDARD=11 .
|
||||
make install -j4
|
||||
cd ..
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ git clone https://github.com/PerMalmberg/libcron --depth=1
|
||||
cd libcron
|
||||
git submodule update --init
|
||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||
make libcron -j8
|
||||
make libcron install -j8
|
||||
install -m644 libcron/out/Release/liblibcron.a /usr/local/lib/
|
||||
install -d /usr/local/include/libcron/
|
||||
install -m644 libcron/include/libcron/* /usr/local/include/libcron/
|
||||
@@ -41,7 +41,7 @@ cd ..
|
||||
|
||||
git clone https://github.com/ToruNiina/toml11 --depth=1
|
||||
cd toml11
|
||||
cmake .
|
||||
cmake -DCMAKE_CXX_STANDARD=11 .
|
||||
make install -j4
|
||||
cd ..
|
||||
|
||||
|
||||
@@ -27,13 +27,8 @@ cd ..
|
||||
git clone https://github.com/PerMalmberg/libcron --depth=1
|
||||
cd libcron
|
||||
git submodule update --init
|
||||
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .
|
||||
make libcron -j4
|
||||
install -m644 libcron/out/Release/liblibcron.a "$MINGW_PREFIX/lib/"
|
||||
install -d "$MINGW_PREFIX/include/libcron/"
|
||||
install -m644 libcron/include/libcron/* "$MINGW_PREFIX/include/libcron/"
|
||||
install -d "$MINGW_PREFIX/include/date/"
|
||||
install -m644 libcron/externals/date/include/date/* "$MINGW_PREFIX/include/date/"
|
||||
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$MINGW_PREFIX" .
|
||||
make libcron install -j4
|
||||
cd ..
|
||||
|
||||
git clone https://github.com/Tencent/rapidjson --depth=1
|
||||
@@ -44,7 +39,7 @@ cd ..
|
||||
|
||||
git clone https://github.com/ToruNiina/toml11 --depth=1
|
||||
cd toml11
|
||||
cmake -DCMAKE_INSTALL_PREFIX="$MINGW_PREFIX" -G "Unix Makefiles" .
|
||||
cmake -DCMAKE_INSTALL_PREFIX="$MINGW_PREFIX" -G "Unix Makefiles" -DCMAKE_CXX_STANDARD=11 .
|
||||
make install -j4
|
||||
cd ..
|
||||
|
||||
|
||||
@@ -29,17 +29,12 @@ cd ..
|
||||
git clone https://github.com/PerMalmberg/libcron --depth=1
|
||||
cd libcron
|
||||
git submodule update --init
|
||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||
make libcron -j3
|
||||
install -m644 libcron/out/Release/liblibcron.a $PREFIX/lib/
|
||||
install -d $PREFIX/include/libcron/
|
||||
install -m644 libcron/include/libcron/* $PREFIX/include/libcron/
|
||||
install -d $PREFIX/include/date/
|
||||
install -m644 libcron/externals/date/include/date/* $PREFIX/include/date/
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX .
|
||||
make libcron install -j3
|
||||
cd ..
|
||||
|
||||
git clone https://github.com/ToruNiina/toml11 --depth=1
|
||||
cd toml11
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX .
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_CXX_STANDARD=11 .
|
||||
make install -j3
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user