Fixed CMake ifdef usage.