[td-225] refactor codes

This commit is contained in:
Haojun Liao 2020-07-30 17:14:17 +08:00
parent a09378a4db
commit fa560fd3a7
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ execute_process(COMMAND chmod 777 ${TD_COMMUNITY_DIR}/packaging/tools/get_os.sh)
execute_process(COMMAND ${TD_COMMUNITY_DIR}/packaging/tools/get_os.sh "" OUTPUT_VARIABLE TD_OS_INFO)
MESSAGE(STATUS "The current os is " ${TD_OS_INFO})
ADD_DEFINITIONS(-D_TD_LINUX_64)
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
IF (${CMAKE_SIZEOF_VOID_P} MATCHES 8)
SET(TD_LINUX_64 TRUE)