summaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-08-28 13:20:44 +0200
committerDamjan Marion <dmarion@me.com>2018-08-28 11:42:44 +0000
commit258a4cf56abc4bc59956709f3a1f1a0063a14280 (patch)
treeffed7d2228bbb8812075d2ac0267b1c17fa681b6 /src/cmake
parente7e5de0693a7a40f96d9410d103a64c8cdc51441 (diff)
cmake: don't install some test executable
To be equal in what autotools do... Change-Id: Ib9f1609f803622a364a08e2c73d6c0fae3d85f3f Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/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()