From 2cc72a5af989ecf3ce01e7fd0c6746616f8dc45c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alf-Andr=C3=A9=20Walla?= Date: Fri, 6 Dec 2024 20:55:56 +0100 Subject: [PATCH] Fix C++ API compiler flags for C sources --- program/cpp/cmake/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/program/cpp/cmake/CMakeLists.txt b/program/cpp/cmake/CMakeLists.txt index 07b9e6b..3badaed 100644 --- a/program/cpp/cmake/CMakeLists.txt +++ b/program/cpp/cmake/CMakeLists.txt @@ -64,7 +64,8 @@ target_compile_definitions(sandbox_api PUBLIC ) target_compile_options(sandbox_api PUBLIC ${RISCV_ARCH} ${RISCV_ABI} - ${CXXFLAGS} + $<$:${CXXFLAGS}> + $<$:${CFLAGS}> ) target_include_directories(sandbox_api PUBLIC ${API_DIR}