Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake build: CACHE OUT-OF-DATE Syndrome with addFSeamTests() #33

Open
jenisys opened this issue Jul 25, 2020 · 0 comments
Open

cmake build: CACHE OUT-OF-DATE Syndrome with addFSeamTests() #33

jenisys opened this issue Jul 25, 2020 · 0 comments
Assignees

Comments

@jenisys
Copy link
Contributor

jenisys commented Jul 25, 2020

Describe the bug
addFSeamTests() macro-call and the generate cmake-snippet to build the generated MockClass sources seem to get out-of-sync sometimes. For example, if you remove an item from the TO_MOCK parameter-list (after a build), its generated sources seem to be used during the next build.

To Reproduce

  1. Build "FSeam_tutorial" with cmake (and run tests; all should pass)
  2. Remove an item from the TO_MOCK parameter-list in a addFSeamTests() macro-call
  3. Build with cmake again (succeeds but should-fail because MockedClass parts should be missing now)

Expected behavior
cmake builds:

  • The addFSeamTests() macro-call in a "CMakeLists.txt" and the generated sources/cmake-snippet should stay in sync.
  • clean-target: Generated source files and cmake-snippet should be removed when using the clean target of the build system. This simplifies to reach a stable state again (without need to remove the complete cmake build-dir)
@FreeYourSoul FreeYourSoul self-assigned this Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants