- fix building in GCC-10

This commit is contained in:
Rachael Alexanderson 2021-09-25 04:50:52 -04:00
parent aebcfe4342
commit c0aff53de5
3 changed files with 5 additions and 0 deletions

View File

@ -222,6 +222,9 @@ if( WIN32 )
endif( CMAKE_COMPILER_IS_GNUCXX )
endif( WIN32 )
if( CMAKE_COMPILER_IS_GNUCXX )
set( ZDRAY_LIBS "${ZLIB_LIBRARIES}" pthread )
endif( CMAKE_COMPILER_IS_GNUCXX )
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${REL_LINKER_FLAGS}" )
set( CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} ${REL_LINKER_FLAGS}" )

View File

@ -23,6 +23,7 @@
#include "collision.h"
#include <algorithm>
#include <functional>
#include <cfloat>
#ifndef NO_SSE
#include <immintrin.h>
#endif

View File

@ -30,6 +30,7 @@
#include <vector>
#include <memory>
#include <string>
#include <cstring>
#include "framework/tarray.h"
#include "lightmap/collision.h"