From a11e2d7366a11385e23d142ac93065a861b70a16 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 9 Aug 2022 14:43:25 +0200 Subject: [libclc] Quote addition of CLC/LLAsm flags Otherwise cmake will insert a semicolon if flags are already set. Differential Revision: https://reviews.llvm.org/D131490 --- libclc/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libclc') diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index 9773b2cc925f..96519e09e28e 100644 --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -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 ) -- cgit v1.2.1