Skip to content

message(FATAL_ERROR ...) collapses spaces

Consider the following code:

cmake_minimum_required(VERSION 3.30)
project(test LANGUAGES NONE)
message(FATAL_ERROR "words  separated   by    multiple     spaces")

Running cmake version 3.30.0-rc4 ends with:

CMake Error at CMakeLists.txt:3 (message):
  words separated by multiple spaces


-- Configuring incomplete, errors occurred!

Spaces collapsing is unexpected and it has to be considered as a bug.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information