summaryrefslogtreecommitdiffstats
path: root/src/cmake/exec.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake/exec.cmake')
-rw-r--r--src/cmake/exec.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmake/exec.cmake b/src/cmake/exec.cmake
index 7bfd5751c83..3ccbeee751c 100644
--- a/src/cmake/exec.cmake
+++ b/src/cmake/exec.cmake
@@ -20,6 +20,7 @@ macro(add_vpp_executable exec)
)
add_executable(${exec} ${ARG_SOURCES})
+ target_compile_options(${exec} PUBLIC ${VPP_DEFAULT_MARCH_FLAGS})
if(ARG_LINK_LIBRARIES)
target_link_libraries(${exec} ${ARG_LINK_LIBRARIES})
endif()