[FREETYPE] CMakeLists.txt: Fix if conditions

This commit is contained in:
Serge Gautherie 2020-06-14 13:49:22 +02:00 committed by Victor Perevertkin
parent 3bc2d590a1
commit bf4d47d969

View file

@ -55,11 +55,9 @@ list(APPEND SOURCE
add_library(freetype ${SOURCE})
if (MSVC)
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC" AND ARCH STREQUAL "amd64")
# error C4312: 'type cast': conversion from 'unsigned long' to 'void *' of greater size
remove_target_compile_option(freetype "/we4312")
elseif(GCC)
target_compile_options(freetype PRIVATE -fno-builtin-malloc)
elseif(CLANG)
target_compile_options(freetype PRIVATE -Wno-tautological-constant-compare)
endif()