فهرست منبع

Update CMakeLists.txt

marauder2k7 2 سال پیش
والد
کامیت
cf874b55e3
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Engine/source/CMakeLists.txt

+ 2 - 1
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.