summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-03-22 20:24:35 +0100
committerJo-Philipp Wich <jo@mein.io>2022-03-22 20:25:01 +0100
commit7d27ad5cf0737213ccdd625e88d64e1a0066d4c4 (patch)
tree70889455728698446786e860b45fcfb6f5a0e837
parent895083a2ece9743aa6a8b1714eb1dbc730828e4e (diff)
build: only stage ucc symlink if compile support is enabled
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--CMakeLists.txt8
1 files 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)