Skip to content

Commit b01177e

Browse files
committed
fix for ESP32 cores > 2.0.0
1 parent ae00988 commit b01177e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Arduino-toolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
9191
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
9292
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
9393

94+
# Workaround for CMAKE_TRY_COMPILE_TARGET_TYPE. For later ESP32 cores this file is missing
95+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/build_opt.h" "")
96+
9497
# Do not try to link during the configure time, due to the dependency on the
9598
# core, which we do not have a target yet.
9699
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

0 commit comments

Comments
 (0)