diff --git a/m.sh b/m.sh index b172e27..8debd51 100755 --- a/m.sh +++ b/m.sh @@ -13,8 +13,7 @@ case "$1" in rm -rf "build" && mkdir -p "build" cmake \ -DCMAKE_BUILD_TYPE="Release" \ - -DCMAKE_SYSTEM_NAME="Linux" \ - -DCMAKE_FIND_ROOT_PATH="${SYSROOT};${LIBROOT}" \ + -DCMAKE_SYSROOT="${SYSROOT}" \ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \ -DCMAKE_SKIP_RPATH=ON \ -S . -B "build" @@ -67,11 +66,10 @@ case "$1" in rm -rf "build" && mkdir "build" cmake \ -DCMAKE_BUILD_TYPE="Release" \ - -DCMAKE_ANDROID_NDK="${ANDROID_NDK_ROOT}" \ -DCMAKE_SYSTEM_NAME="Android" \ -DCMAKE_SYSTEM_VERSION="${ANDROID_API_LEVEL}" \ + -DCMAKE_ANDROID_NDK="${ANDROID_NDK_ROOT}" \ -DCMAKE_ANDROID_ARCH_ABI="${ABI_NAME}" \ - -DCMAKE_FIND_ROOT_PATH="${SYSROOT};${LIBROOT}" \ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \ -DENABLE_MIMALLOC=ON \ -DLINK_STATIC_LIBS=ON \