[libclc] Quote addition of CLC/LLAsm flags
authorNikita Popov <npopov@redhat.com>
Tue, 9 Aug 2022 12:43:25 +0000 (14:43 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 31 Aug 2022 09:10:24 +0000 (11:10 +0200)
Otherwise cmake will insert a semicolon if flags are already set.

Differential Revision: https://reviews.llvm.org/D131490

libclc/CMakeLists.txt

index 9773b2c..96519e0 100644 (file)
@@ -136,8 +136,8 @@ set( LLVM_VERSION_DEFINE "-DHAVE_LLVM=0x${LLVM_MAJOR}0${LLVM_MINOR}" )
 
 # LLVM 13 enables standard includes by default
 if( ${LLVM_VERSION} VERSION_GREATER "12.99.99" )
-                               set( CMAKE_LLAsm_FLAGS ${CMAKE_LLAsm_FLAGS} -cl-no-stdinc )
-                               set( CMAKE_CLC_FLAGS ${CMAKE_CLC_FLAGS} -cl-no-stdinc )
+                               set( CMAKE_LLAsm_FLAGS "${CMAKE_LLAsm_FLAGS} -cl-no-stdinc")
+                               set( CMAKE_CLC_FLAGS "${CMAKE_CLC_FLAGS} -cl-no-stdinc")
 endif()
 
 enable_language( CLC LLAsm )