From 7f4167e1801e860401415e1caf99d9f6abeb3000 Mon Sep 17 00:00:00 2001 From: Khalil Estell Date: Thu, 19 Feb 2026 08:51:40 -0800 Subject: [PATCH] :bug: Add CXX flags to compile options --- v5/cmake/LibhalExecutable.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v5/cmake/LibhalExecutable.cmake b/v5/cmake/LibhalExecutable.cmake index 365fb72..e270f51 100644 --- a/v5/cmake/LibhalExecutable.cmake +++ b/v5/cmake/LibhalExecutable.cmake @@ -56,8 +56,8 @@ function(libhal_add_executable TARGET_NAME) target_link_libraries(${TARGET_NAME} PRIVATE ${ARG_LINK_LIBRARIES}) endif() - # Apply compile options - target_link_libraries(${TARGET_NAME} PRIVATE ${LIBHAL_CXX_FLAGS}) + target_compile_options(${TARGET_NAME} PRIVATE ${LIBHAL_CXX_FLAGS}) + target_link_options(${TARGET_NAME} PRIVATE ${LIBHAL_CXX_FLAGS}) # Set C++ standard target_compile_features(${TARGET_NAME} PRIVATE cxx_std_23)