We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23412a3 commit 16054d6Copy full SHA for 16054d6
1 file changed
docker/build.sh
@@ -77,17 +77,9 @@ GetNrfSdk() {
77
}
78
79
CmakeGenerate() {
80
- CMAKE_ARGS=''
81
-
82
- if [ -n "$ENABLE_USERAPPS" ]
83
- then
84
- CMAKE_ARGS="-DENABLE_USERAPPS=$ENABLE_USERAPPS"
85
- fi
86
87
- if [ -n "$ENABLE_WATCHFACES" ]
88
89
- CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_WATCHFACES=$ENABLE_WATCHFACES"
90
+ CMAKE_ARGS=()
+ [ -n "$ENABLE_USERAPPS" ] && CMAKE_ARGS+=("-DENABLE_USERAPPS=$ENABLE_USERAPPS")
+ [ -n "$ENABLE_WATCHFACES" ] && CMAKE_ARGS+=("-DENABLE_WATCHFACES=$ENABLE_WATCHFACES")
91
92
cmake -G "Unix Makefiles" \
93
-S "$SOURCES_DIR" \
@@ -97,7 +89,7 @@ CmakeGenerate() {
97
-DNRF5_SDK_PATH="$TOOLS_DIR/$NRF_SDK_VER" \
98
-DBUILD_DFU=1 \
99
-DBUILD_RESOURCES=1 \
100
- $CMAKE_ARGS
+ ${CMAKE_ARGS[@]}
101
102
94
103
95
CmakeBuild() {
0 commit comments