mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 02:35:46 +01:00
Disable HTTP for targets that don't need it (#12375)
This commit is contained in:
committed by
GitHub
parent
33a88fbdbd
commit
13842198fa
@@ -99,5 +99,5 @@ if (FORCE32)
|
||||
else ()
|
||||
set(TESTPAINT_64BIT_FLAGS "-Wno-int-to-pointer-cast -fpermissive -Wno-error")
|
||||
endif ()
|
||||
set_target_properties(testpaint PROPERTIES COMPILE_FLAGS "-DNO_VEHICLES -D__TESTPAINT__ -Wno-unused ${TESTPAINT_64BIT_FLAGS}")
|
||||
set_target_properties(testpaint PROPERTIES COMPILE_FLAGS "-DNO_VEHICLES -D__TESTPAINT__ -Wno-unused ${TESTPAINT_64BIT_FLAGS} -DDISABLE_HTTP")
|
||||
add_dependencies(testpaint segfiles)
|
||||
|
||||
@@ -86,6 +86,7 @@ set(COMMON_TEST_SOURCES
|
||||
|
||||
# Create a re-usable library to save some compilation time
|
||||
add_library(test-common STATIC ${COMMON_TEST_SOURCES})
|
||||
set_target_properties(test-common PROPERTIES COMPILE_DEFINITIONS DISABLE_HTTP)
|
||||
|
||||
# Setup testdata. It should be fine here, as the only way to reach here is by explicitly requesting tests.
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_CURRENT_LIST_DIR}/testdata" "${CMAKE_CURRENT_BINARY_DIR}/testdata")
|
||||
|
||||
Reference in New Issue
Block a user