Browse Source

cmake: throw an error if ARM isn't detected

half-secret
Alibek Omarov 5 years ago
parent
commit
043e91866f
  1. 6
      cmake/LibraryNaming.cmake

6
cmake/LibraryNaming.cmake

@ -67,6 +67,8 @@ elseif(XASH_ARM) @@ -67,6 +67,8 @@ elseif(XASH_ARM)
set(BUILDARCH "${BUILDARCH}5")
elseif(XASH_ARMv4)
set(BUILDARCH "${BUILDARCH}4")
else()
message(SEND_ERROR "Unknown ARM")
endif()
if(XASH_ARM_HARDFP)
@ -86,7 +88,9 @@ else() @@ -86,7 +88,9 @@ else()
message(SEND_ERROR "Place your architecture name here! If this is a mistake, try to fix conditions above and report a bug")
endif()
if(BUILDOS AND BUILDARCH)
if(BUILDOS STREQUAL "android")
set(POSTFIX "") # force disable for Android, as Android ports aren't distributed in normal way and doesn't follow library naming
elif(BUILDOS AND BUILDARCH)
set(POSTFIX "_${BUILDOS}_${BUILDARCH}")
elseif(BUILDARCH)
set(POSTFIX "_${BUILDARCH}")

Loading…
Cancel
Save