Skip to content

Commit

Permalink
Fix C++ API compiler flags for C sources
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Dec 6, 2024
1 parent 908ef93 commit 2cc72a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion program/cpp/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ target_compile_definitions(sandbox_api PUBLIC
)
target_compile_options(sandbox_api PUBLIC
${RISCV_ARCH} ${RISCV_ABI}
${CXXFLAGS}
$<$<COMPILE_LANGUAGE:CXX>:${CXXFLAGS}>
$<$<COMPILE_LANGUAGE:C>:${CFLAGS}>
)
target_include_directories(sandbox_api PUBLIC
${API_DIR}
Expand Down

0 comments on commit 2cc72a5

Please sign in to comment.