Skip to content
Snippets Groups Projects
Commit ce65bb86 authored by Emilio Corigliano's avatar Emilio Corigliano
Browse files

[cmake] Added custom property to store compilation flags

parent fe151e9d
Branches
Tags
No related merge requests found
Pipeline #8576 failed
......@@ -74,6 +74,12 @@ define_property(TARGET
BRIEF_DOCS "Preperty that stores the link libraries of the target"
)
# Creating property to store the link directories
define_property(TARGET
PROPERTY TARGET_CXX_FLAGS INHERITED
BRIEF_DOCS "Preperty that stores the CXX flags of the target"
)
# Function to configure a target to be built for the kernel
function(configure_target_for_kernel TARGET TYPE)
# Include kernel directories
......@@ -148,6 +154,7 @@ function(add_miosix_libraries BOARD_OPTIONS_FILE)
set(INTERFACE_LIB interface-${BOARD_NAME})
add_library(${INTERFACE_LIB} INTERFACE)
configure_target_for_kernel(${INTERFACE_LIB} INTERFACE)
set_property(TARGET ${INTERFACE_LIB} PROPERTY TARGET_CXX_FLAGS ${CXXFLAGS_BASE})
# Configure linker file and options
set_property(TARGET ${KERNEL_LIB} PROPERTY INTERFACE_LINK_DEPENDS ${LINKER_SCRIPT})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment