mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
testing: Make share/zeek/tests a relative symlink, prefix with DESTDIR
This create_symlink call would not respect DESTDIR at installation time, fix proposed by Benjamin. Also make the symlink path relative instead of absolute for easier relocation of the Zeek installation. Closes #3266
This commit is contained in:
parent
c9c5959d49
commit
ccdbf25d1f
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ endif ()
|
|||
install(
|
||||
CODE "execute_process( \
|
||||
COMMAND ${CMAKE_COMMAND} -E create_symlink \
|
||||
${ZEEK_CONFIG_BTEST_TOOLS_DIR}/data \
|
||||
${CMAKE_INSTALL_PREFIX}/share/zeek/tests \
|
||||
../btest/data \
|
||||
\$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/share/zeek/tests \
|
||||
)")
|
||||
|
||||
install(DIRECTORY scripts/spicy/ DESTINATION ${ZEEK_CONFIG_BTEST_TOOLS_DIR}/data/Scripts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue