From a747777174d4e69ce7bcbc04cfe7227f26fecc44 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 10 Dec 2021 15:48:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=BE=20=D1=81?= =?UTF-8?q?=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=81=D0=B8=D0=BC?= =?UTF-8?q?=D0=B2=D0=BE=D0=BB=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D1=85=20?= =?UTF-8?q?=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake b/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake index 5377c0c..25c594f 100644 --- a/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake +++ b/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake @@ -135,9 +135,8 @@ function(myx_cmake_common_target_properties target) endif() # Создание в каталоге ${CMAKE_BINARY_DIR} символических ссылок на каталоги в ${CMAKE_SOURCE_DIR}/files - if(NOT TARGET ${target}-symlinks AND UNIX) - add_custom_target( - ${target}-symlinks + if(NOT TARGET myx-cmake-symlinks-to-project-directories AND UNIX) + add_custom_target(myx-cmake-symlinks-to-project-directories WORKING_DIRECTORY ${CMAKE_BINARY_DIR} # Ссылка на каталог с журналами COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/log @@ -151,6 +150,6 @@ function(myx_cmake_common_target_properties target) # Ссылка на каталог настроек COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/etc ${CMAKE_BINARY_DIR}/etc) - add_dependencies(${target} ${target}-symlinks) + add_dependencies(${target} myx-cmake-symlinks-to-project-directories) endif() endfunction()