Swan does not compile in folders with a `-` in the name
Steps to reproduce:
- Checkout the source code in a directory
swan-git
- Configure with
cmake --trace .. -G Ninja -DNETCDF=ON -DOPENMP=ON
(with extra trace argument to confirm the location of the problem) - CMake hangs on
switch.pl
- switch.pl expects all arguments with a
-
in it to be known switches - If the location of .ftn files also has a
-
in it, the while loop hangs
Suggestion for a resolution:
- the while loop (line 18 in switch.pl) could have an else statement or a refined regex