diff --git a/blcrack/platform/android.toolchain.cmake b/blcrack/platform/android.toolchain.cmake index a25101158..f63e74887 100644 --- a/blcrack/platform/android.toolchain.cmake +++ b/blcrack/platform/android.toolchain.cmake @@ -1,9 +1,9 @@ -if (NOT DEFINED ENV{NDK_ROOT}) +if (NOT DEFINED NDK_ROOT) message(FATAL_ERROR "NDK_ROOT is not defined. Please set it to the root directory of your Android NDK.") endif () -message(STATUS "Using Android NDK: $ENV{NDK_ROOT}") +message(STATUS "Using Android NDK: ${NDK_ROOT}") if (NOT DEFINED ANDROID_ABI) message("ANDROID_ABI is not defined. Defaulting to x86") set(ANDROID_ABI x86) endif () -set(CMAKE_TOOLCHAIN_FILE $ENV{NDK_ROOT}/build/cmake/android.toolchain.cmake) \ No newline at end of file +set(CMAKE_TOOLCHAIN_FILE ${NDK_ROOT}/build/cmake/android.toolchain.cmake) \ No newline at end of file