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()