From cf874b55e32a47d94de61a0f8456006c7a94116c Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Tue, 25 Jul 2023 05:21:59 +0100 Subject: [PATCH] Update CMakeLists.txt --- Engine/source/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine/source/CMakeLists.txt b/Engine/source/CMakeLists.txt index fa58a25fd..8c7380df5 100644 --- a/Engine/source/CMakeLists.txt +++ b/Engine/source/CMakeLists.txt @@ -14,7 +14,8 @@ set(TORQUE_SDL ON) # we need sdl to do our platform interop forwardDef(TORQUE_SDL) if(TORQUE_TESTING) -forwardDef(TORQUE_TESTS_ENABLED) +set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} TORQUE_TESTS_ENABLED) +set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} "_VARIADIC_MAX=10") endif() # On Windows we disable CRT Security warnings - this comes from recommendations to use non-portable functions.