[CMake] Diagnostics for unclosed generator expressions?
Johannes Zarl
johannes.zarl at jku.at
Mon Nov 17 10:50:21 EST 2014
Hi,
Today I learned the hard way that cmake does not provide any diagnostic about
unclosed generator expressions.
Consider the following:
add_test(
NAME generator_expression_unclosed
COMMAND
${CMAKE_COMMAND} -E echo "$<0:Unclosed expression gives a warning?"
)
cmake happily accepts this without any diagnostic, whereas regular variables
are diagnosed correctly:
message(STATUS "${test")
gives:
Syntax error in cmake code at
/home/zing/scratch/cmake_testbed/CMakeLists.txt:143
when parsing string
${unclosed
syntax error, unexpected $end, expecting } (10)
Should I file a bug report on this issue?
Cheers,
Johannes
More information about the CMake
mailing list