Improve CmakeLists so that compilation at cenaero is possible

Rebecca NAKHOUL requested to merge fix_cmake into master

Merge request reports