Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Miosix Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emilio Corigliano
Miosix Kernel
Commits
ce65bb86
Commit
ce65bb86
authored
1 year ago
by
Emilio Corigliano
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] Added custom property to store compilation flags
parent
fe151e9d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#8576
failed
1 year ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
miosix/cmake/miosix.cmake
+7
-0
7 additions, 0 deletions
miosix/cmake/miosix.cmake
with
7 additions
and
0 deletions
miosix/cmake/miosix.cmake
+
7
−
0
View file @
ce65bb86
...
...
@@ -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
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment