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.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmake/exec.cmake b/src/cmake/exec.cmake
index b8277fa8389..d5e837084e9 100644
--- a/src/cmake/exec.cmake
+++ b/src/cmake/exec.cmake
@@ -13,7 +13,7 @@
macro(add_vpp_executable exec)
cmake_parse_arguments(ARG
- "ENABLE_EXPORTS"
+ "ENABLE_EXPORTS;NO_INSTALL"
""
"SOURCES;LINK_LIBRARIES;DEPENDS"
${ARGN}
@@ -29,6 +29,8 @@ macro(add_vpp_executable exec)
if(ARG_DEPENDS)
add_dependencies(${exec} ${ARG_DEPENDS})
endif()
- install(TARGETS ${exec} DESTINATION bin)
+ if(NOT ARG_NO_INSTALL)
+ install(TARGETS ${exec} DESTINATION bin)
+ endif()
endmacro()