File tree 1 file changed +12
-2
lines changed
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)
48
48
endif ()
49
49
50
50
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 ()
51
61
52
62
set (DEPS "" )
53
63
set (BINS "" )
@@ -70,8 +80,8 @@ function (add_universal_target TARGET SOURCE)
70
80
"-DUNIVERSAL_PROJECT_DIR:FILEPATH=${SOURCE} "
71
81
"-DUNIVERSAL_BINARY_DIR:FILEPATH=${CMAKE_CURRENT_BINARY_DIR} /${TARGET} /${platform} "
72
82
"-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} "
75
85
BUILD_ALWAYS 1 # force dependency checking
76
86
INSTALL_COMMAND ""
77
87
)
You can’t perform that action at this time.
0 commit comments