Fix clang build

This commit is contained in:
krystalgamer 2024-06-10 19:55:10 +02:00
parent cd9a9373e1
commit 1da7fce0dd

View File

@ -8,7 +8,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_CXX_FLAGS "-m32 -w -fpermissive")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message("Creating for Clang++")
set (CMAKE_CXX_FLAGS "-m32 -w -fpermissive -fms-extensions")
set (CMAKE_CXX_FLAGS "-m32 -w -fpermissive -fms-extensions -Wno-address-of-temporary")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
message("Creating for AppleClang++")
set (CMAKE_CXX_FLAGS "-arch i386 -m32 -w -fpermissive -fms-extensions")