From 27b029ba674ddc0ea3d54dba9336ec8f2641390d Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 23 Dec 2022 20:54:54 +0100 Subject: [PATCH] =?UTF-8?q?Avoid=20invalid=20`-std=3Dc++=E2=80=A6`=20flag?= =?UTF-8?q?=20when=20`CXX=5FSTANDARD`=20is=20empty=20in=20CMake=20macro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/cmake/modules/ReflectionGenerator.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmake/modules/ReflectionGenerator.cmake b/lib/cmake/modules/ReflectionGenerator.cmake index 119f2b5..b80497b 100644 --- a/lib/cmake/modules/ReflectionGenerator.cmake +++ b/lib/cmake/modules/ReflectionGenerator.cmake @@ -141,7 +141,7 @@ function (add_reflection_generator_invocation) if (ARGS_CLANG_OPTIONS_FROM_TARGETS) foreach (TARGET_NAME ${ARGS_CLANG_OPTIONS_FROM_TARGETS}) # set c++ standard - list(APPEND ARGS_CLANG_OPTIONS "-std=c++$") + list(APPEND ARGS_CLANG_OPTIONS "$<$>:-std=c++$>") # add compile flags and options _reflective_rapidjson_set_prop("${TARGET_NAME}" COMPILE_FLAGS) list(APPEND ARGS_CLANG_OPTIONS "$<$:$>>")