Skip to content

Commit

Permalink
Fix picotool_DIR passing to universal build
Browse files Browse the repository at this point in the history
  • Loading branch information
lurch authored Aug 27, 2024
1 parent 15bc1a6 commit 9464abf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion universal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ function (add_universal_target TARGET SOURCE)
else()
set(universal_picotool_DIR ${picotool_INSTALL_DIR}/picotool)
endif()
if (pioasm_DIR)
set(universal_pioasm_DIR ${pioasm_DIR})
else()
set(universal_pioasm_DIR ${PIOASM_INSTALL_DIR}/pioasm)
endif()

set(DEPS "")
set(BINS "")
Expand All @@ -76,7 +81,7 @@ function (add_universal_target TARGET SOURCE)
"-DUNIVERSAL_BINARY_DIR:FILEPATH=${CMAKE_CURRENT_BINARY_DIR}/${TARGET}/${platform}"
"-DSOURCE_TARGET=${SOURCE_TARGET}"
"-Dpicotool_DIR=${universal_picotool_DIR}"
"-Dpioasm_DIR=${PIOASM_INSTALL_DIR}/pioasm"
"-Dpioasm_DIR=${universal_pioasm_DIR}"
BUILD_ALWAYS 1 # force dependency checking
INSTALL_COMMAND ""
)
Expand Down

0 comments on commit 9464abf

Please sign in to comment.