Изменено правило создания символических ссылок
This commit is contained in:
parent
d7b6411ad3
commit
a747777174
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user