diff options
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r-- | meta/classes/cmake.bbclass | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 8ccb1eefc7..11ffb0d33f 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -181,9 +181,18 @@ cmake_do_configure() { | |||
181 | -Wno-dev | 181 | -Wno-dev |
182 | } | 182 | } |
183 | 183 | ||
184 | # To disable verbose cmake logs for a given recipe or globally config metadata e.g. local.conf | ||
185 | # add following | ||
186 | # | ||
187 | # CMAKE_VERBOSE = "" | ||
188 | # | ||
189 | |||
190 | CMAKE_VERBOSE ??= "VERBOSE=1" | ||
191 | |||
192 | # Then run do_compile again | ||
184 | cmake_runcmake_build() { | 193 | cmake_runcmake_build() { |
185 | bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} | 194 | bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} |
186 | eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} | 195 | eval ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} |
187 | } | 196 | } |
188 | 197 | ||
189 | cmake_do_compile() { | 198 | cmake_do_compile() { |