CMake: Set EMU_ARCH_BITS in CMakeLists.txt

This commit is contained in:
Cameron Cawley 2018-03-16 13:29:36 +00:00
parent 935bcdbd20
commit 8d1cab4892
4 changed files with 2 additions and 36 deletions

View file

@ -165,6 +165,8 @@ add_definitions(-DSINGLETHREADED)
set_property(DIRECTORY APPEND PROPERTY
COMPILE_DEFINITIONS $<$<CONFIG:Debug>:_DEBUG> $<$<NOT:$<CONFIG:Debug>>:NDEBUG>)
math(EXPR EMU_ARCH_BITS ${CMAKE_SIZEOF_VOID_P}*8)
add_definitions(-DEMU_ARCH_BITS=${EMU_ARCH_BITS})
# System imported libraries
# ======================