mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
CMake: Fix Interrogate macro sometimes passing -D''
This commit is contained in:
parent
f5b6761128
commit
1046b122a3
@ -218,7 +218,10 @@ function(interrogate_sources target output database language_flags)
|
|||||||
# that's fine, it also ignores '"'
|
# that's fine, it also ignores '"'
|
||||||
set(_q "'")
|
set(_q "'")
|
||||||
endif()
|
endif()
|
||||||
set(define_flags "$<$<BOOL:${_compile_defs}>:-D${_q}$<JOIN:${_compile_defs},${_q}\t-D${_q}>${_q}>")
|
set(_compile_defs_flags "-D${_q}$<JOIN:${_compile_defs},${_q}\t-D${_q}>${_q}")
|
||||||
|
# We may have just ended up with -D'' if there are no flags; filter that
|
||||||
|
set(define_flags
|
||||||
|
"$<$<NOT:$<STREQUAL:${_compile_defs_flags},-D${_q}${_q}>>:${_compile_defs_flags}>")
|
||||||
|
|
||||||
# Some of the definitions may be specified using -D flags in the global
|
# Some of the definitions may be specified using -D flags in the global
|
||||||
# CXX_FLAGS variables; parse those out (this also picks up NDEBUG)
|
# CXX_FLAGS variables; parse those out (this also picks up NDEBUG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user