Only generate installation rules for rostests if the ROSTESTS_INSTALL environment variable is defined.

svn path=/trunk/; revision=73534
This commit is contained in:
Colin Finck 2017-01-13 09:43:12 +00:00
parent da200b3a2c
commit 0a08074364

View file

@ -834,5 +834,8 @@ function(add_rostests_file)
endif()
add_cd_file(FILE ${_ROSTESTS_FILE} DESTINATION "reactos/bin${_ROSTESTS_SUBDIR}" FOR all)
install(FILES ${_ROSTESTS_FILE} DESTINATION "$ENV{ROSTESTS_INSTALL}${_ROSTESTS_SUBDIR}" COMPONENT rostests)
if(DEFINED ENV{ROSTESTS_INSTALL})
install(FILES ${_ROSTESTS_FILE} DESTINATION "$ENV{ROSTESTS_INSTALL}${_ROSTESTS_SUBDIR}" COMPONENT rostests)
endif()
endfunction()