ensure test/scripts does not exist in dfhack repo

develop
myk002 2021-03-05 19:47:39 -08:00
parent 6d1bd62af9
commit f7ce441a3f
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 0 deletions

@ -491,6 +491,9 @@ endif()
option(BUILD_TESTS "Include tests (currently just installs Lua tests into the scripts folder)" OFF) option(BUILD_TESTS "Include tests (currently just installs Lua tests into the scripts folder)" OFF)
if(BUILD_TESTS) if(BUILD_TESTS)
if(EXISTS "${dfhack_SOURCE_DIR}/test/scripts")
message(SEND_ERROR "test/scripts must not exist in the dfhack repo since it would conflict with the tests installed from the scripts repo.")
endif()
install(DIRECTORY ${dfhack_SOURCE_DIR}/test install(DIRECTORY ${dfhack_SOURCE_DIR}/test
DESTINATION ${DFHACK_DATA_DESTINATION}/scripts) DESTINATION ${DFHACK_DATA_DESTINATION}/scripts)
endif() endif()