detect properly for mobile

pull/903/head
Jeff Becker 5 years ago
parent ea7884231d
commit e3724577d3
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -63,12 +63,16 @@ include(cmake/unix.cmake)
include(cmake/win32.cmake)
# try detecting the target arch and set the flags needed here
if(NOT WIN32)
include(TargetArch)
target_architecture(COMPILE_ARCH)
if(COMPILE_ARCH MATCHES i386 OR COMPILE_ARCH MATCHES x86_64)
set(NON_PC_TARGET OFF)
else()
if(IOS OR ANDROID)
set(NON_PC_TARGET ON)
else()
include(TargetArch)
target_architecture(COMPILE_ARCH)
if(COMPILE_ARCH MATCHES i386 OR COMPILE_ARCH MATCHES x86_64)
set(NON_PC_TARGET OFF)
else()
set(NON_PC_TARGET ON)
endif()
endif()
endif()

Loading…
Cancel
Save