Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
ae7173d4
Commit
ae7173d4
authored
Nov 03, 2021
by
Ivan Grokhotkov
Committed by
me-no-dev
Nov 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: error out of IDF version is outside of supported range
parent
c7080b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
CMakeLists.txt
CMakeLists.txt
+24
-0
No files found.
CMakeLists.txt
View file @
ae7173d4
# Check ESP-IDF version and error out if it is not in the supported range.
#
# Note for arduino-esp32 developers: to bypass the version check locally,
# set ARDUINO_SKIP_IDF_VERSION_CHECK environment variable to 1. For example:
# export ARDUINO_SKIP_IDF_VERSION_CHECK=1
# idf.py build
set
(
min_supported_idf_version
"4.4.0"
)
set
(
max_supported_idf_version
"4.4.99"
)
set
(
idf_version
"
${
IDF_VERSION_MAJOR
}
.
${
IDF_VERSION_MINOR
}
.
${
IDF_VERSION_PATCH
}
"
)
if
(
"
${
idf_version
}
"
AND NOT
"$ENV{ARDUINO_SKIP_IDF_VERSION_CHECK}"
)
if
(
idf_version VERSION_LESS min_supported_idf_version
)
message
(
FATAL_ERROR
"Arduino-esp32 can be used with ESP-IDF versions "
"between
${
min_supported_idf_version
}
and
${
max_supported_idf_version
}
, "
"but an older version is detected:
${
idf_version
}
."
)
endif
()
if
(
idf_version VERSION_GREATER max_supported_idf_version
)
message
(
FATAL_ERROR
"Arduino-esp32 can be used with ESP-IDF versions "
"between
${
min_supported_idf_version
}
and
${
max_supported_idf_version
}
, "
"but a newer version is detected:
${
idf_version
}
."
)
endif
()
endif
()
set
(
CORE_SRCS
cores/esp32/base64.cpp
cores/esp32/cbuf.cpp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment