Skip to content

Commit 9322c19

Browse files
committed
Usermod and ${MICROPY_DIR}/py/py.cmake
1 parent 58c32a1 commit 9322c19

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/base.cmake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
# THE SOFTWARE.
2525
#/
2626

27-
if(NOT MICROPY_DIR)
28-
get_filename_component(MICROPY_DIR ${PROJECT_DIR}/../.. ABSOLUTE)
29-
endif()
27+
# Log the PROJECT_DIR value
28+
message (STATUS "PROJECT_DIR=${PROJECT_DIR}")
29+
30+
get_filename_component(MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR}/../third_party/micropython ABSOLUTE)
3031

3132
# `py.cmake` for `micropy_gather_target_properties` macro usage
3233
include(${MICROPY_DIR}/py/py.cmake)
@@ -284,5 +285,5 @@ if (CONFIG_IDF_TARGET_ESP32S3) # Extra compile options needed to build esp-nn AS
284285
target_compile_options(microlite INTERFACE -mlongcalls -fno-unroll-loops -Wno-unused-function)
285286
endif()
286287

287-
target_link_libraries(usermod INTERFACE microlite)
288+
target_link_libraries(usermod_microlite INTERFACE microlite)
288289
micropy_gather_target_properties(microlite)

0 commit comments

Comments
 (0)