Skip to content

Changing project selection potentially results in CMake error #352

Description

@ReinhardKeil

Current behavior, Steps to reproduce and Expected behavior

csolution 1.68.1-11-5d54514
Repo: https://github.com/Arm-Examples/SDS-Examples
Solution: Alif/AppKit-E7_USB/SDS

The solution contains two projects "DataTest" and "AlgorithmTest".

  1. Select both projects ("DataTest" and "AlgorithmTest") and build
  2. Change selection to "AlgorithmTest" only and save

This results in this output:

FAILED: [code=1] AlgorithmTest.Debug+AppKit-E7-U55/src/AlgorithmTest.Debug+AppKit-E7-U55-stamp/AlgorithmTest.Debug+AppKit-E7-U55-configure C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/AlgorithmTest.Debug+AppKit-E7-U55/src/AlgorithmTest.Debug+AppKit-E7-U55-stamp/AlgorithmTest.Debug+AppKit-E7-U55-configure 
C:\WINDOWS\system32\cmd.exe /C "cd /D C:\w\SDS-examples\Alif\AppKit-E7_USB\tmp\AppKit-E7-U55\default\1 && C:\Users\reikei01\.vcpkg\artifacts\2139c4c6\tools.kitware.cmake\3.31.12\bin\cmake.exe -P C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/AlgorithmTest.Debug+AppKit-E7-U55/src/AlgorithmTest.Debug+AppKit-E7-U55-stamp/AlgorithmTest.Debug+AppKit-E7-U55-configure-.cmake && C:\Users\reikei01\.vcpkg\artifacts\2139c4c6\tools.kitware.cmake\3.31.12\bin\cmake.exe -E touch C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/AlgorithmTest.Debug+AppKit-E7-U55/src/AlgorithmTest.Debug+AppKit-E7-U55-stamp/AlgorithmTest.Debug+AppKit-E7-U55-configure"
CMake Error at C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/AlgorithmTest.Debug+AppKit-E7-U55/src/AlgorithmTest.Debug+AppKit-E7-U55-stamp/AlgorithmTest.Debug+AppKit-E7-U55-configure-.cmake:37 (message):
  Command failed: 1

   'C:/Users/reikei01/.vcpkg/artifacts/2139c4c6/tools.kitware.cmake/3.31.12/bin/cmake.exe' '-G' 'Ninja' '-S' 'C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/AlgorithmTest.Debug+AppKit-E7-U55' '-B' 'C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/1' '-DSOLUTION_ROOT=C:/w/SDS-examples/Alif/AppKit-E7_USB' '-DCMSIS_PACK_ROOT=C:/Users/reikei01/AppData/Local/Arm/Packs' '-DCMSIS_COMPILER_ROOT=C:/Users/reikei01/.vscode/extensions/arm.cmsis-csolution-1.68.1-11-5d54514/tools/cmsis-toolbox/etc'

  See also

    C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/AlgorithmTest.Debug+AppKit-E7-U55/src/AlgorithmTest.Debug+AppKit-E7-U55-stamp/AlgorithmTest.Debug+AppKit-E7-U55-configure-*.log


-- stdout output is:

-- stderr output is:
CMake Error: The source "C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/AlgorithmTest.Debug+AppKit-E7-U55/CMakeLists.txt" does not match the source "C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/DataTest.Debug+AppKit-E7-U55/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

CMake Error at C:/w/SDS-examples/Alif/AppKit-E7_USB/tmp/AppKit-E7-U55/default/AlgorithmTest.Debug+AppKit-E7-U55/src/AlgorithmTest.Debug+AppKit-E7-U55-stamp/AlgorithmTest.Debug+AppKit-E7-U55-configure-.cmake:47 (message):
  Stopping after outputting logs.

Additional Information

A user wants to switch seamless between two projects for testing on hardware. As both projects where generated before, the expectation is that no rebuild is required.

  • It works when "DataTest" is selected, then no error happens (perhaps since it is the first project)
  • It fails when "AlgorithmTest" is selected.

Metadata

Metadata

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions