aboutsummaryrefslogtreecommitdiffhomepage
path: root/externals/CMakeLists.txt
diff options
context:
space:
mode:
authorcomex <[email protected]>2023-08-20 14:52:58 -0700
committerLiam <[email protected]>2023-08-25 19:22:31 -0400
commit32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c (patch)
tree9d194999e60da9f1d09b9ffe4fe6198baca7d8c4 /externals/CMakeLists.txt
parent91eb5afd0b7c75213763d379638bac6d53548557 (diff)
downloadyuzu-mainline-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar.gz
yuzu-mainline-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.zip
Avoid `$<CXX_COMPILER_ID:Clang>` because it doesn't include AppleClang.
Diffstat (limited to 'externals/CMakeLists.txt')
-rw-r--r--externals/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 3a389485b..4a8e1cee9 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -43,8 +43,8 @@ endif()
add_subdirectory(mbedtls)
target_include_directories(mbedtls PUBLIC ./mbedtls/include)
target_compile_options(mbedcrypto PRIVATE
- $<$<CXX_COMPILER_ID:Clang>:-Wno-unused-but-set-variable>
- $<$<CXX_COMPILER_ID:Clang>:-Wno-string-concatenation>)
+ -Wno-unused-but-set-variable
+ -Wno-string-concatenation)
# MicroProfile
add_library(microprofile INTERFACE)
@@ -98,7 +98,9 @@ if (ENABLE_CUBEB AND NOT TARGET cubeb::cubeb)
add_subdirectory(cubeb)
add_library(cubeb::cubeb ALIAS cubeb)
if (NOT MSVC)
- target_compile_options(speex PRIVATE -Wno-sign-compare)
+ if (TARGET speex)
+ target_compile_options(speex PRIVATE -Wno-sign-compare)
+ endif()
target_compile_options(cubeb PRIVATE -Wno-implicit-const-int-float-conversion)
endif()
endif()