Изменены правила для путей к стандартным каталогам

This commit is contained in:
Andrei Astafev 2020-04-04 00:12:29 +03:00
parent 47581bd7b7
commit c9c13df552

View File

@ -3,25 +3,21 @@ if(NOT TARGET create_auxilary_symlinks)
add_custom_target( add_custom_target(
create_auxilary_symlinks create_auxilary_symlinks
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/files
# Ссылка на каталог с журналами # Ссылка на каталог с журналами
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LOCALSTATEDIR}/log
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/log COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/log
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LOCALSTATEDIR}/log/${PROJECT_NAME} ${CMAKE_BINARY_DIR}/files/log
# Ссылка на каталог с обрабатываемыми данными # Ссылка на каталог с обрабатываемыми данными
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LOCALSTATEDIR}/lib
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/lib COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/lib
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LOCALSTATEDIR}/lib/${PROJECT_NAME} ${CMAKE_BINARY_DIR}/files/lib
# Ссылка на каталог с временными данными # Ссылка на каталог с временными данными
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LOCALSTATEDIR}/cache
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/cache COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/cache
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LOCALSTATEDIR}/cache/${PROJECT_NAME} ${CMAKE_BINARY_DIR}/files/cache
# Ссылка на каталог с постоянными данными # Ссылка на каталог с постоянными данными
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR} COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/data
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/${CMAKE_INSTALL_DATADIR} ${CMAKE_BINARY_DIR}/files/data
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}
# Ссылка на каталог настроек # Ссылка на каталог настроек
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_SYSCONFDIR} COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/etc
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/files/${CMAKE_INSTALL_SYSCONFDIR} ${CMAKE_BINARY_DIR}/etc)
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME})
endif() endif()
endif() endif()