Make replays only downloadable when configured with tests (#9868)

This commit is contained in:
Michał Janiszewski 2019-08-13 21:04:08 +02:00 committed by GitHub
parent 401ec9e19f
commit 209c6d0513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@ endif()
project(openrct2 CXX)
include(cmake/platform.cmake)
include(CMakeDependentOption)
if (NOT MSVC)
include(FindPkgConfig)
@ -34,7 +35,8 @@ option(WITH_TESTS "Build tests")
option(PORTABLE "Create a portable build (-rpath=$ORIGIN)" OFF)
option(DOWNLOAD_TITLE_SEQUENCES "Download title sequences during installation." ON)
option(DOWNLOAD_OBJECTS "Download objects during installation." ON)
option(DOWNLOAD_REPLAYS "Download replays during installation." ON)
CMAKE_DEPENDENT_OPTION(DOWNLOAD_REPLAYS "Download replays during installation." ON
"WITH_TESTS" OFF)
# Options
option(STATIC "Create a static build.")