cmake: Add PACKAGECONFIG option for debugger support
PATCH v2 1/1 cmake: Add PACKAGECONFIG option for debugger support
From: Nikhil R <[email protected]>
Starting from CMake version 2.27 support for interactive debugging of CMake scripts and configurations was added. However, by default the nativesdk-cmake is compiled with debugger support turned off.
This change adds debugger support for cmake
--- meta/recipes-devtools/cmake/cmake_4.0.3.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-devtools/cmake/cmake_4.0.3.bb +3 -0
@@ -46,6 +46,9 @@ EXTRA_OECMAKE = " \ -DCMake_ENABLE_DEBUGGER=0 \ " +PACKAGECONFIG ??= "" +PACKAGECONFIG[debugger] = "-DCMake_ENABLE_DEBUGGER=1,-DCMake_ENABLE_DEBUGGER=0," + do_install:append:class-nativesdk() { mkdir -p ${D}${datadir}/cmake install -m 644 ${UNPACKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/
Signature · 1 line
2.34.1
Quoted 18 lines · nikhil via lists.openembedded.org
From: Nikhil R <[email protected]>
Starting from CMake version 2.27 support for interactive debugging of CMake scripts and configurations was added. However, by default the
nativesdk-cmakeis compiled with debugger support turned off.This change adds debugger support for cmake
Signed-off-by Nikhil R <[email protected]>--- meta/recipes-devtools/cmake/cmake_4.0.3.bb | 3 +++ 1 file changed, 3 insertions(+)meta/recipes-devtools/cmake/cmake_4.0.3.bb +0
-0
meta/recipes-devtools/cmake/cmake_4.0.3.bb EXTRA_OECMAKE = " \ · line 46
Quoted 1 line
meta/recipes-devtools/cmake/cmake_4.0.3.bb +0
-0@@ -46,6 +46,9 @@ EXTRA_OECMAKE = " \ -DCMake_ENABLE_DEBUGGER=0 \
Since you are adding CMake_ENABLE_DEBUGGER from PACKAGECONFIG below, it doesn't need to be present explicitly in EXTRA_OECMAKE anymore (the cmake class will add it, with the appropriate value)
Quoted 17 lines
meta/recipes-devtools/cmake/cmake_4.0.3.bb +3
-1" +PACKAGECONFIG ??= "" +PACKAGECONFIG[debugger] = "-DCMake_ENABLE_DEBUGGER=1,-DCMake_ENABLE_DEBUGGER=0," + do_install:append:class-nativesdk() { mkdir -p ${D}${datadir}/cmake install -m 644 ${UNPACKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/ -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#221457): https://lists.openembedded.org/g/openembedded-core/message/221457
Mute This Topic: https://lists.openembedded.org/mt/114544863/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-