From 7d27ad5cf0737213ccdd625e88d64e1a0066d4c4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 22 Mar 2022 20:24:35 +0100 Subject: build: only stage ucc symlink if compile support is enabled Signed-off-by: Jo-Philipp Wich --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f81cdb..3409f02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,9 +216,13 @@ INSTALL(TARGETS ucode RUNTIME DESTINATION bin) INSTALL(TARGETS libucode LIBRARY DESTINATION lib) INSTALL(TARGETS ${LIBRARIES} LIBRARY DESTINATION lib/ucode) -ADD_CUSTOM_TARGET(ucc ALL COMMAND ${CMAKE_COMMAND} -E create_symlink ucode ucc) ADD_CUSTOM_TARGET(utpl ALL COMMAND ${CMAKE_COMMAND} -E create_symlink ucode utpl) -INSTALL(FILES ucc;utpl DESTINATION bin) +INSTALL(FILES utpl DESTINATION bin) + +IF(COMPILE_SUPPORT) + ADD_CUSTOM_TARGET(ucc ALL COMMAND ${CMAKE_COMMAND} -E create_symlink ucode ucc) + INSTALL(FILES ucc DESTINATION bin) +ENDIF() FILE(GLOB UCODE_HEADERS "include/ucode/*.h") INSTALL(FILES ${UCODE_HEADERS} DESTINATION include/ucode) -- cgit v1.2.3