Merge pull request #2085 from RosettaCommons/roccomoretti/cmake_nan_inf
Update CMake for NaN/Inf issues.
Pull Request #1737 fixed the scons build system for proper Inf/NaN handling, but the CMake subsystem was overlooked. This pull request fixes the issue, by adding the proper exclusion flags to the CMake build systems.