target_compile_definitions and -D_FILE_OFFSET_BITS=64
Here is the original reproducer:
find_package(LLVM REQUIRED)
target_compile_definitions(foo PRIVATE ${LLVM_DEFINITIONS})
on typical 32bits arches, here is what I see (pay close attention to the quotes):
/usr/bin/c++ -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS="64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
Would it be possible to extend the behavior of target_compile_definitions
or at least produce a warning that this is not supposed to work.
For reference: