1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

CMake fixes

Thanks to @RipleyTom

Co-Authored-By: RipleyTom <RipleyTom@users.noreply.github.com>
This commit is contained in:
Elad Ashkenazi 2024-05-14 18:52:33 +03:00
parent 6d8575d0d0
commit 6bceebbb1a
4 changed files with 7 additions and 11 deletions

View File

@ -1,9 +1,7 @@
project(3rdparty_zstd)
add_library(3rdparty_zstd INTERFACE)
option(ZSTD_BUILD_PROGRAMS "BUILD PROGRAMS" OFF)
option(ZSTD_BUILD_SHARED "BUILD SHARED LIBRARIES" OFF)
option(ZSTD_BUILD_STATIC "BUILD STATIC LIBRARIES" ON)
add_subdirectory(zstd/build/cmake EXLUDE_FROM_ALL)
target_include_directories(3rdparty_zstd INTERFACE zstd zstd/lib)
add_library(3rdparty_zstd INTERFACE)
target_link_libraries(3rdparty_zstd INTERFACE libzstd_static)

View File

@ -114,8 +114,6 @@ if(MSVC)
add_compile_options(/wd4530 /utf-8) # C++ exception handler used, but unwind semantics are not enabled
endif()
set(ALLOW_DUPLICATE_CUSTOM_TARGETS TRUE)
add_subdirectory(3rdparty)
if (DISABLE_LTO)

View File

@ -25,7 +25,7 @@ endif()
target_link_libraries(rpcs3_emu
PRIVATE
3rdparty::zlib 3rdparty::yaml-cpp
3rdparty::zlib 3rdparty::yaml-cpp 3rdparty::zstd
PUBLIC
3rdparty::libevdev 3rdparty::flatbuffers)

View File

@ -10,7 +10,7 @@
#include "serialization_ext.hpp"
#include <zlib.h>
#include <3rdparty/zstd/zstd/lib/zstd.h>
#include <zstd.h>
LOG_CHANNEL(sys_log, "SYS");