PR #413's inclusion of #:include 'case.fpp' in src/common/m_variables_conversion.fpp caused documentation builds to fail. This is because no case.fpp file can be #:include'd when post_process's source gets pre-processed through Fypp. This issue only exists when building documentation for post_process and not when building the associated binary because mfc.sh generates an empty case.fpp for it when building the target. This PR makes sure that a case.fpp file always exists, thereby solving the issue.
--case-optimization should still work because the directory in which mfc.sh creates case.fpp files for this feature has higher priority when Fypp searches for includes, than src/common/include where this PR creates an empty case.fpp. See
Description
PR #413's inclusion of
#:include 'case.fpp'
insrc/common/m_variables_conversion.fpp
caused documentation builds to fail. This is because nocase.fpp
file can be#:include
'd whenpost_process
's source gets pre-processed through Fypp. This issue only exists when building documentation forpost_process
and not when building the associated binary becausemfc.sh
generates an emptycase.fpp
for it when building the target. This PR makes sure that acase.fpp
file always exists, thereby solving the issue.--case-optimization
should still work because the directory in whichmfc.sh
createscase.fpp
files for this feature has higher priority when Fypp searches for includes, thansrc/common/include
where this PR creates an emptycase.fpp
. Seehttps://github.com/MFlowCode/MFC/blob/de3e7a1968b748939c7a94c59bf5e9e8b53cd2a7/CMakeLists.txt#L306-L310
Fixes #417.
Type of change
Please delete options that are not relevant.
Scope
How Has This Been Tested?
./mfc.sh build -j $(nproc) -t documentation