Fetching BUILD_OS_ARCH from env

This commit is contained in:
WolverinDEV 2019-11-11 21:45:21 +01:00
parent 84c1f94f30
commit 2bb9310f78

View File

@ -34,6 +34,10 @@ function(resolve_library VARIABLE FALLBACK PATHS)
endif() endif()
endfunction() endfunction()
if (NOT BUILD_OS_ARCH)
set(BUILD_OS_ARCH $ENV{BUILD_OS_ARCH})
endif ()
resolve_library(LIBRARY_TOM_MATH OFF "${LIBRARY_PATH}/tommath/build/libtommathStatic.a") resolve_library(LIBRARY_TOM_MATH OFF "${LIBRARY_PATH}/tommath/build/libtommathStatic.a")
resolve_library(LIBRARY_TOM_CRYPT OFF "${LIBRARY_PATH}/tomcrypt/libtomcrypt.a") resolve_library(LIBRARY_TOM_CRYPT OFF "${LIBRARY_PATH}/tomcrypt/libtomcrypt.a")
resolve_library(LIBRARY_PATH_BREAKPAD OFF "${LIBRARY_PATH}/breakpad/build/src/client/linux/libbreakpad_client.a") resolve_library(LIBRARY_PATH_BREAKPAD OFF "${LIBRARY_PATH}/breakpad/build/src/client/linux/libbreakpad_client.a")