cmake: spacing

This commit is contained in:
Nguyen Anh Quynh
2020-05-01 20:18:07 +08:00
parent 0cd66bab8a
commit d7e61123ac

View File

@ -7,12 +7,13 @@
# nmake
# Or Open "x64 Native Tools Command Prompt for VS 2019" for 64bit binary.
# Tested on Ubuntu-1804-amd64 with gcc.
# cd ${UNICORN_SOURCE_DIR}
# mkdir build
# cd build
# cmake ..
# make
# $ cd ${UNICORN_SOURCE_DIR}
# $ mkdir build
# $ cd build
# $ cmake ..
# $ make
# By Huitao Chen, 2019
cmake_minimum_required(VERSION 3.1)
project(unicorn C)
@ -21,6 +22,7 @@ set(UNICORN_VERSION_MINOR 0)
set(UNICORN_VERSION_PATCH 2)
if(NOT UNICORN_ARCH)
# build all architectures
set(UNICORN_ARCH "x86 arm aarch64 m68k mips sparc")
endif()
@ -86,6 +88,7 @@ else()
execute_process(COMMAND ${CMAKE_C_COMPILER} -dM -E -
INPUT_FILE /dev/null
OUTPUT_VARIABLE UC_COMPILER_MACRO)
while(TRUE)
string(FIND ${UC_COMPILER_MACRO} "__x86_64__" UC_RET)
if (${UC_RET} GREATER "0")
@ -177,7 +180,7 @@ else()
endif()
set (TARGET_LIST "${TARGET_LIST} ")
# GEN dynamic source files
# GEN config-host.mak & target directories
execute_process(COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/qemu/configure
${EXTRA_CFLAGS}
${TARGET_LIST}