mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
CMake fixes
Thanks to @RipleyTom Co-Authored-By: RipleyTom <RipleyTom@users.noreply.github.com>
This commit is contained in:
parent
6d8575d0d0
commit
6bceebbb1a
12
3rdparty/zstd/CMakeLists.txt
vendored
12
3rdparty/zstd/CMakeLists.txt
vendored
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user