|
|
@ -143,8 +143,8 @@ if (MSVC AND ARCHITECTURE_x86) |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
if (CXX_CLANG_CL) |
|
|
if (CXX_CLANG_CL) |
|
|
|
|
|
# clang-cl prints literally 10000+ warnings without this |
|
|
add_compile_options( |
|
|
add_compile_options( |
|
|
# clang-cl prints literally 10000+ warnings without this |
|
|
|
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-command-line-argument> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-command-line-argument> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unsafe-buffer-usage> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unsafe-buffer-usage> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-value> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-value> |
|
|
@ -153,13 +153,15 @@ if (CXX_CLANG_CL) |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-reserved-identifier> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-reserved-identifier> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-deprecated-declarations> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-deprecated-declarations> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-cast-function-type-mismatch> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-cast-function-type-mismatch> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:/EHsc>) |
|
|
|
|
|
|
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:/EHsc> |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
# REQUIRED CPU features IN Windows-amd64 |
|
|
# REQUIRED CPU features IN Windows-amd64 |
|
|
if (ARCHITECTURE_x86_64) |
|
|
if (ARCHITECTURE_x86_64) |
|
|
add_compile_options( |
|
|
add_compile_options( |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-msse4.1> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-msse4.1> |
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-mcx16>) |
|
|
|
|
|
|
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-mcx16> |
|
|
|
|
|
) |
|
|
endif() |
|
|
endif() |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
@ -395,13 +397,15 @@ if (Boost_ADDED) |
|
|
if (NOT MSVC OR CXX_CLANG) |
|
|
if (NOT MSVC OR CXX_CLANG) |
|
|
# boost sucks |
|
|
# boost sucks |
|
|
if (PLATFORM_SUN) |
|
|
if (PLATFORM_SUN) |
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthreads") |
|
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthreads") |
|
|
|
|
|
|
|
|
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:-pthreads>) |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
target_compile_options(boost_heap INTERFACE -Wno-shadow) |
|
|
|
|
|
target_compile_options(boost_icl INTERFACE -Wno-shadow) |
|
|
|
|
|
target_compile_options(boost_asio INTERFACE -Wno-conversion -Wno-implicit-fallthrough) |
|
|
|
|
|
|
|
|
target_compile_options(boost_heap INTERFACE $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-shadow>) |
|
|
|
|
|
target_compile_options(boost_icl INTERFACE $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-shadow>) |
|
|
|
|
|
target_compile_options(boost_asio INTERFACE |
|
|
|
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-conversion> |
|
|
|
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-implicit-fallthrough> |
|
|
|
|
|
) |
|
|
endif() |
|
|
endif() |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
@ -440,7 +444,7 @@ if (NOT YUZU_STATIC_ROOM) |
|
|
if (Opus_ADDED) |
|
|
if (Opus_ADDED) |
|
|
if (MSVC AND CXX_CLANG) |
|
|
if (MSVC AND CXX_CLANG) |
|
|
target_compile_options(opus PRIVATE |
|
|
target_compile_options(opus PRIVATE |
|
|
-Wno-implicit-function-declaration |
|
|
|
|
|
|
|
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-implicit-function-declaration> |
|
|
) |
|
|
) |
|
|
endif() |
|
|
endif() |
|
|
endif() |
|
|
endif() |
|
|
|