Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AT90USB1286 AVR-GCC CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Scrase
AT90USB1286 AVR-GCC CMake
Commits
7403425f
Commit
7403425f
authored
4 years ago
by
James Scrase
Browse files
Options
Downloads
Patches
Plain Diff
Fix optimisation flags, so delay_ms works
parent
3b7f6ac4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+5
-8
5 additions, 8 deletions
CMakeLists.txt
with
5 additions
and
8 deletions
CMakeLists.txt
+
5
−
8
View file @
7403425f
...
@@ -117,15 +117,12 @@ message(STATUS "Set CMAKE_SYSTEM_LIBRARY_PATH to ${CMAKE_SYSTEM_LIBRARY_PATH}")
...
@@ -117,15 +117,12 @@ message(STATUS "Set CMAKE_SYSTEM_LIBRARY_PATH to ${CMAKE_SYSTEM_LIBRARY_PATH}")
##################################################################################
##################################################################################
set
(
CSTANDARD
""
)
set
(
CSTANDARD
""
)
set
(
CDEBUG
""
)
set
(
CDEBUG
""
)
set
(
CWARN
"-Wall -Wextra -Wno-main -Wstrict-overflow=5 -Winline"
)
set
(
CWARN -Wall -Wextra -Wno-main -Wstrict-overflow=5 -Winline
)
set
(
CTUNING
"-fstrict-overflow -fno-strict-aliasing"
)
set
(
CTUNING -fstrict-overflow -fno-strict-aliasing
)
set
(
COPT
"-Os"
)
set
(
COPT -Os
)
set
(
CMCU
"-mmcu=
${
MCU
}
"
)
#set(CDEFS "-DF_CPU=${F_CPU}") Have to set this using the line below otherwise we get errors about not defining F_CPU
add_definitions
(
-DF_CPU=
${
F_CPU
}
)
set
(
CMAKE_C_CFLAGS
"
${
CMCU
}
${
CDEBUG
}
${
CDEFS
}
${
COPT
}
${
CWARN
}
${
CSTANDARD
}
${
CTUNING
}
"
)
add_definitions
(
-DF_CPU=
${
F_CPU
}
)
add_compile_options
(
${
CDEBUG
}
${
COPT
}
${
CWARN
}
${
CSTANDARD
}
${
CTUNING
}
)
### File Discovery
### File Discovery
...
...
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