GEOS-ESM / ESMA_cmake

Custom CMake macros for the GEOS Earth System Model
Apache License 2.0
4 stars 9 forks source link

Add code to prevent directories with commas #211

Closed mathomp4 closed 3 years ago

mathomp4 commented 3 years ago

As discovered recently (see https://github.com/GEOS-ESM/GEOSadas/issues/106), CMake can sometimes generate -Wl linker instructions in make files. But, -Wl accepts comma-delimited lists. Thus, if an install or build directory has a comma in its path, this causes an error during the build step.

So, this PR adds code to prevent users of GEOS from using either a build directory or an install directory with a comma in its path.