[APISETS] Try to fix build of both case of MSVC AND CLANG

This commit is contained in:
Katayama Hirofumi MZ 2020-10-22 09:07:15 +09:00
parent 89bd2d12da
commit 926ada989c

View File

@ -24,7 +24,9 @@ function (add_apiset apiset_name baseaddress)
add_dependencies(${apiset_name} xdk)
set_module_type(${apiset_name} win32dll ENTRYPOINT 0 UNICODE IMAGEBASE ${baseaddress})
if(NOT MSVC)
if(MSVC AND CLANG)
target_compile_options(${apiset_name} PRIVATE -fno-builtin)
elseif(NOT MSVC)
target_compile_options(${apiset_name} PRIVATE -fno-builtin)
else()
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273)