You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you rerun the build step (not the configure step), then unless you set CONFIGURE_DEPENDS, your build tool will not check to see if you have added any new files that now pass the glob. This is the reason poorly written CMake projects often have issues when you are trying to add files; some people are in the habit of rerunning cmake before every build because of this. You shouldn’t ever have to manually reconfigure; the build tool will rerun CMake as needed with this one exception. If you add CONFIGURE_DEPENDS, then most build tools will actually start checking glob too. The classic rule of CMake was “never glob”; the new rule is “never glob, but if you have to, add CONFIGURE_DEPENDS”.
The text was updated successfully, but these errors were encountered:
fortran-skeleton/CMakeLists.txt
Line 1 in 5b4d1dd
You may want to add
CONFIGURE_DEPENDS
. For further context see the recent discussion at Discourse: https://fortran-lang.discourse.group/t/module-dependencies-in-cmake-not-tracked-after-a-module-is-updated/4202/18Quoting from the More Modern CMake tutorial:
The text was updated successfully, but these errors were encountered: