File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ function (add_universal_target TARGET SOURCE)
4848 endif ()
4949
5050 add_custom_target (${TARGET} ALL )
51+ if (picotool_DIR)
52+ set (universal_picotool_DIR ${picotool_DIR} )
53+ else ()
54+ set (universal_picotool_DIR ${picotool_INSTALL_DIR} /picotool)
55+ endif ()
56+ if (pioasm_DIR)
57+ set (universal_pioasm_DIR ${pioasm_DIR} )
58+ else ()
59+ set (universal_pioasm_DIR ${PIOASM_INSTALL_DIR} /pioasm)
60+ endif ()
5161
5262 set (DEPS "" )
5363 set (BINS "" )
@@ -70,8 +80,8 @@ function (add_universal_target TARGET SOURCE)
7080 "-DUNIVERSAL_PROJECT_DIR:FILEPATH=${SOURCE} "
7181 "-DUNIVERSAL_BINARY_DIR:FILEPATH=${CMAKE_CURRENT_BINARY_DIR} /${TARGET} /${platform} "
7282 "-DSOURCE_TARGET=${SOURCE_TARGET} "
73- "-Dpicotool_DIR=${picotool_INSTALL_DIR} /picotool "
74- "-Dpioasm_DIR=${PIOASM_INSTALL_DIR} /pioasm "
83+ "-Dpicotool_DIR=${universal_picotool_DIR} "
84+ "-Dpioasm_DIR=${universal_pioasm_DIR} "
7585 BUILD_ALWAYS 1 # force dependency checking
7686 INSTALL_COMMAND ""
7787 )
You can’t perform that action at this time.
0 commit comments