extra cmake arguments ignored in SDK 2.7.0 using sysbuild

Hello
In SDK 2.6.xx I used to define an extra CMake argument in the VSCode UI, i.e  "-DMFG=1"
This argument was available when CMakeLists.txt was processed so I could do additional processing i.e
if(MFG)
additional processing..
endif()
This broke in 2.7.0 and higher which use sysbuild
The argument is on the command line generated by VSCode but not available to CMake 
What's the recommended way to make it visible to CMake in SDK 2.7.0 and later that use sysbuild?
Thanks

Andy

Parents Reply Children
  • Hmm

    I'm no CMake expert but it seems that if  an extra CMake argument is provided it should be visible when CMakeLists.txt is processed. It feels like a bug to me.
    I'm doing a lot of processing in CMakeLists.txt based on the extra CMake arguments- include/exclude files, set the symbols visble in the source code, etc. Now all this will have to move to sysbuild.cmake it seems - unless there is another way to make those arguments be visible in CMakeLists.txt. Is there?

Related