- fixed C++ compilation flags applied to C files

This had an effect on 32-bit targets without SSE support
This commit is contained in:
alexey.lysiuk 2019-09-24 11:53:18 +03:00
parent 7ba485f632
commit ca5ca8e974

View file

@ -353,7 +353,7 @@ if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
endif ()
if( NOT X64 AND NOT CAN_DO_MFPMATH )
set( CMAKE_C_FLAGS "-DNO_SSE ${CMAKE_CXX_FLAGS}" )
set( CMAKE_C_FLAGS "-DNO_SSE ${CMAKE_C_FLAGS}" )
set( CMAKE_CXX_FLAGS "-DNO_SSE ${CMAKE_CXX_FLAGS}" )
endif()