[cmake]: Change to shorter RKPLATFORM macro

Change Android and Linux branches to use RKPLATFORM macro.
RKPLATFORM is shorter and it is not a cmake variable.

Change-Id: I09a6fe72e7dacedbb4b2b8e1a66b6f7ca625f019
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen 2017-12-19 19:44:30 +08:00
parent 81759e832a
commit b186d04390
9 changed files with 12 additions and 14 deletions

View file

@ -31,12 +31,10 @@ if(NOT COMMAND find_host_program)
endmacro()
endif()
option(RKPLATFORM "Enable RK HW CONFIG" OFF)
if(${CMAKE_RKPLATFORM_ENABLE} MATCHES "ON")
option(RKPLATFORM "Enable RK HW CONFIG" ON)
set(RKPLATFORM True)
add_definitions(-DRKPLATFORM)
endif()
set(RKPLATFORM "" CACHE BOOL "Enable RK HW CONFIG")
if (RKPLATFORM)
ADD_DEFINITIONS(-DRKPLATFORM)
endif(RKPLATFORM)
project (rk_mpp)