diff --git a/lib/cmake/modules/ReflectionGenerator.cmake b/lib/cmake/modules/ReflectionGenerator.cmake index 8c142f8..119f2b5 100644 --- a/lib/cmake/modules/ReflectionGenerator.cmake +++ b/lib/cmake/modules/ReflectionGenerator.cmake @@ -142,9 +142,11 @@ function (add_reflection_generator_invocation) foreach (TARGET_NAME ${ARGS_CLANG_OPTIONS_FROM_TARGETS}) # set c++ standard list(APPEND ARGS_CLANG_OPTIONS "-std=c++$") - # add compile flags + # add compile flags and options _reflective_rapidjson_set_prop("${TARGET_NAME}" COMPILE_FLAGS) list(APPEND ARGS_CLANG_OPTIONS "$<$:$>>") + _reflective_rapidjson_set_prop("${TARGET_NAME}" COMPILE_OPTIONS) + list(APPEND ARGS_CLANG_OPTIONS "$<$:$>>") # add compile definitions _reflective_rapidjson_set_prop("${TARGET_NAME}" COMPILE_DEFINITIONS) list(APPEND ARGS_CLANG_OPTIONS "$<$:-D$-D>>")