Fix some CMake warnings
Fix some CMake warnings

For instance:
```
CMake Warning (dev) at examples/CMakeLists.txt:11 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as
variables or ...
```

KDE/threadweaver,KDE/threadweaver,KDE/threadweaver