Fix cmake build.

When attempting to use cmake on linux, it fails with the following error:
CMake Error at src/CMakeLists.txt:600 (if):
  if given arguments:

    "EQUAL" ""

  Unknown arguments specified
This commit fixes that issue.