From 8134e2509d6aa201e46eaae4f7eb55bfbbf758ee Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 23 Mar 2022 19:37:27 +0100 Subject: build: fix symlink install target Signed-off-by: Jo-Philipp Wich --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3409f02..d578458 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,11 +217,11 @@ INSTALL(TARGETS libucode LIBRARY DESTINATION lib) INSTALL(TARGETS ${LIBRARIES} LIBRARY DESTINATION lib/ucode) ADD_CUSTOM_TARGET(utpl ALL COMMAND ${CMAKE_COMMAND} -E create_symlink ucode utpl) -INSTALL(FILES utpl DESTINATION bin) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/utpl DESTINATION bin) IF(COMPILE_SUPPORT) ADD_CUSTOM_TARGET(ucc ALL COMMAND ${CMAKE_COMMAND} -E create_symlink ucode ucc) - INSTALL(FILES ucc DESTINATION bin) + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ucc DESTINATION bin) ENDIF() FILE(GLOB UCODE_HEADERS "include/ucode/*.h") -- cgit v1.2.3