cmake was still considering the empty value of ${fake_version_inc}
even if it was not defined.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/include/llvm/Support/CMakeLists.txt | ||
---|---|---|
26 | Can you use ${generated_files} here as well for OUTPUT and avoid duplicating this command? |
llvm/include/llvm/Support/CMakeLists.txt | ||
---|---|---|
26 | Hi, I had initially tried using ${generated_files} for OUTPUT as well but then ninja started complaining with following error (only in cases where llvm_vc was not defined) ninja: error: 'include/llvm/Support/VCSRevision.h', needed by 'include/llvm/Support/CMakeFiles/llvm_vcsrevision_h', missing and no known rule to make it |
With this change ninja clean works without errors for me (also regular ninja, ninja install). Approving from the functional perspective only, don't know CMake good enough to say if it can benefit from any improvements.
This commit appears to be causing an error when I run CMake:
CMake Error:
Running '/usr/bin/ninja-build' '-C' '/home/tstellar/llvm-project/llvm-build' '-t' 'cleandead' failed with: ninja: error: remove(include/llvm/Support): Directory not empty
CMake Generate step failed. Build files cannot be regenerated correctly.
That can't be it. I was seeing that very error before this patch,
which is why i was happy to see this patch, hoping that it would fix it.
Reverting this patch seems to fix the error for me. Are you still seeing this same error in trunk?
Just tried, and nope, works fine now. @pdhaliwal - thanks, i think!
Perhaps it's cache invalidation issue, and you need a fresh build dir?
Can you use ${generated_files} here as well for OUTPUT and avoid duplicating this command?