Merge branch '391-build-system-change-order-of-checks-to-build-a-module' into 'master'
Resolve "build-system: change order of checks to build a module"
Closes #391 (closed)
See merge request !421 (merged)
(cherry picked from commit 3e95734d)
61887f78 build-system: change order of checks to build a module
Co-authored-by: gsell achim.gsell@psi.ch