cmake: Move check for TOTP property up.

This is done to make future modifications simpler,
as more variables and functions are available.

Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no>
This commit is contained in:
Håkon Øye Amundsen 2018-11-29 09:14:27 +00:00 committed by Anas Nashif
parent 2a3f43458b
commit a449439504

View file

@ -340,6 +340,9 @@ if(NOT CONFIG_NATIVE_APPLICATION)
set(NOSTDINC_F -nostdinc)
endif()
get_property(TOPT GLOBAL PROPERTY TOPT)
set_ifndef( TOPT -T)
if(NOT CONFIG_NATIVE_APPLICATION)
# Funny thing is if this is set to =error, some architectures will
# skip this flag even though the compiler flag check passes
@ -1071,8 +1074,6 @@ endif()
get_property(GKOF GLOBAL PROPERTY GENERATED_KERNEL_OBJECT_FILES)
get_property(GKSF GLOBAL PROPERTY GENERATED_KERNEL_SOURCE_FILES)
get_property(TOPT GLOBAL PROPERTY TOPT)
set_ifndef( TOPT -T)
get_property(CSTD GLOBAL PROPERTY CSTD)
set_ifndef(CSTD c99)