mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
cmake: Avoid leading space in LLVM_DEFINITIONS.
Summary: Unnecessary space at the beginning of LLVM_DEFINITIONS in cmake shared files can break projects that use the variable. Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13432 llvm-svn: 250025
This commit is contained in:
parent
f0275ef824
commit
51dcd3d0fd
@ -7,7 +7,11 @@
|
|||||||
macro(add_llvm_definitions)
|
macro(add_llvm_definitions)
|
||||||
# We don't want no semicolons on LLVM_DEFINITIONS:
|
# We don't want no semicolons on LLVM_DEFINITIONS:
|
||||||
foreach(arg ${ARGN})
|
foreach(arg ${ARGN})
|
||||||
set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
|
if(DEFINED LLVM_DEFINITIONS)
|
||||||
|
set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
|
||||||
|
else()
|
||||||
|
set(LLVM_DEFINITIONS ${arg})
|
||||||
|
endif()
|
||||||
endforeach(arg)
|
endforeach(arg)
|
||||||
add_definitions( ${ARGN} )
|
add_definitions( ${ARGN} )
|
||||||
endmacro(add_llvm_definitions)
|
endmacro(add_llvm_definitions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user