We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816a198 commit 15bc1a6Copy full SHA for 15bc1a6
universal/CMakeLists.txt
@@ -48,6 +48,11 @@ function (add_universal_target TARGET SOURCE)
48
endif()
49
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
57
set(DEPS "")
58
set(BINS "")
@@ -70,7 +75,7 @@ function (add_universal_target TARGET SOURCE)
70
75
"-DUNIVERSAL_PROJECT_DIR:FILEPATH=${SOURCE}"
71
76
"-DUNIVERSAL_BINARY_DIR:FILEPATH=${CMAKE_CURRENT_BINARY_DIR}/${TARGET}/${platform}"
72
77
"-DSOURCE_TARGET=${SOURCE_TARGET}"
73
- "-Dpicotool_DIR=${picotool_INSTALL_DIR}/picotool"
78
+ "-Dpicotool_DIR=${universal_picotool_DIR}"
74
79
"-Dpioasm_DIR=${PIOASM_INSTALL_DIR}/pioasm"
80
BUILD_ALWAYS 1 # force dependency checking
81
INSTALL_COMMAND ""
0 commit comments