FreeYourSoul / FSeam

Cpp header only library to manage compile time mock class generated via Python script
MIT License
86 stars 8 forks source link

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

Open jenisys opened 4 years ago

jenisys commented 4 years ago

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: