Added CMake check if comparison of enum class object works.
Implement enum class comparison on my own if not supported by compiler.