CMake has known limitations on what compile definitions could be.
Among these limitations are function-style definitions (_LIB_FALLTHROUGH()
) and ones containing double quotes ("
).
Instead of attempting to overcome these limitations, it is recommended to create a separate header file with these compile definitions:
#define _LIB_EXCEPTION_ABI __attribute__((visibility("default")))
#define _LIB_FALLTHROUGH() ((void)0)
This header file could be included with -include
compiler option (gcc) or /FI
option (Visual Studio).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…