diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-25 23:21:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 23:21:37 +0200 |
commit | 43be2bfe332d5537041262eb08037993239eaf5f (patch) | |
tree | 65ad2049b7ce6b0464069d23058a25fc4c457fff /src/common/CMakeLists.txt | |
parent | Merge pull request #11876 from liamwhite/apiversion (diff) | |
parent | cmake: prefer system stb headers (diff) | |
download | yuzu-43be2bfe332d5537041262eb08037993239eaf5f.tar yuzu-43be2bfe332d5537041262eb08037993239eaf5f.tar.gz yuzu-43be2bfe332d5537041262eb08037993239eaf5f.tar.bz2 yuzu-43be2bfe332d5537041262eb08037993239eaf5f.tar.lz yuzu-43be2bfe332d5537041262eb08037993239eaf5f.tar.xz yuzu-43be2bfe332d5537041262eb08037993239eaf5f.tar.zst yuzu-43be2bfe332d5537041262eb08037993239eaf5f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 8a1861051..e216eb3de 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -120,6 +120,8 @@ add_library(common STATIC socket_types.h spin_lock.cpp spin_lock.h + stb.cpp + stb.h steady_clock.cpp steady_clock.h stream.cpp @@ -208,6 +210,8 @@ if (MSVC) /we4254 # 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data /we4800 # Implicit conversion from 'type' to bool. Possible information loss ) +else() + set_source_files_properties(stb.cpp PROPERTIES COMPILE_OPTIONS "-Wno-implicit-fallthrough;-Wno-missing-declarations;-Wno-missing-field-initializers") endif() if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") @@ -223,7 +227,7 @@ endif() create_target_directory_groups(common) -target_link_libraries(common PUBLIC Boost::context Boost::headers fmt::fmt microprofile Threads::Threads) +target_link_libraries(common PUBLIC Boost::context Boost::headers fmt::fmt microprofile stb::headers Threads::Threads) target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd LLVM::Demangle) if (ANDROID) |