Skip to content

Commit

Permalink
UPBGE: Set TBB libraries for Windows compiling
Browse files Browse the repository at this point in the history
Fix min/max definition too.
  • Loading branch information
lordloki committed Jun 1, 2018
1 parent 07f5e83 commit 93ca68a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_files/cmake/platform/platform_win32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ if(WITH_SDL)
set(SDL_LIBRARY ${SDL_LIBPATH}/SDL2.lib)
endif()

if(WITH_GAMEENGINE)
set(TBB_LIBRARIES optimized ${LIBDIR}/tbb/lib/tbb.lib debug ${LIBDIR}/tbb/lib/tbb_debug.lib)
set(TBB_INCLUDE_DIR ${LIBDIR}/tbb/include)
endif()

# Audio IO
if(WITH_SYSTEM_AUDASPACE)
set(AUDASPACE_INCLUDE_DIRS ${LIBDIR}/audaspace/include/audaspace)
Expand Down
6 changes: 6 additions & 0 deletions source/gameengine/Ketsji/KX_CullingHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

#include "EXP_ListValue.h"

#ifdef WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif
#endif

class KX_GameObject;

class KX_CullingHandler
Expand Down

0 comments on commit 93ca68a

Please sign in to comment.