Browse Source
[cmake] fix windows cpm and boost link
[cmake] fix windows cpm and boost link
Signed-off-by: crueter <crueter@crueter.xyz>pull/250/head
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
13 changed files with 58 additions and 106 deletions
-
7.ci/windows/build.sh
-
34.patch/httplib/0001-ssl-libs.patch
-
14.patch/quazip/0001-libz.patch
-
0.vcpkg.json
-
45CMakeLists.txt
-
4externals/CMakeLists.txt
-
6src/common/CMakeLists.txt
-
24src/common/fs/file.h
-
4src/core/CMakeLists.txt
-
4src/core/debugger/debugger.cpp
-
17src/dynarmic/src/dynarmic/CMakeLists.txt
-
1src/yuzu/CMakeLists.txt
-
4src/yuzu/externals/CMakeLists.txt
@ -1,34 +0,0 @@ |
|||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||
index 5638fb9..6e24c74 100644
|
|
||||
--- a/CMakeLists.txt
|
|
||||
+++ b/CMakeLists.txt
|
|
||||
@@ -113,16 +113,8 @@ endif()
|
|
||||
# Threads needed for <thread> on some systems, and for <pthread.h> on Linux |
|
||||
set(THREADS_PREFER_PTHREAD_FLAG true) |
|
||||
find_package(Threads REQUIRED) |
|
||||
-# Since Cmake v3.11, Crypto & SSL became optional when not specified as COMPONENTS.
|
|
||||
-if(HTTPLIB_REQUIRE_OPENSSL)
|
|
||||
- find_package(OpenSSL ${_HTTPLIB_OPENSSL_MIN_VER} COMPONENTS Crypto SSL REQUIRED)
|
|
||||
-elseif(HTTPLIB_USE_OPENSSL_IF_AVAILABLE)
|
|
||||
- find_package(OpenSSL ${_HTTPLIB_OPENSSL_MIN_VER} COMPONENTS Crypto SSL QUIET)
|
|
||||
-endif()
|
|
||||
-# Just setting this variable here for people building in-tree
|
|
||||
-if(OPENSSL_FOUND AND NOT DEFINED HTTPLIB_IS_USING_OPENSSL)
|
|
||||
- set(HTTPLIB_IS_USING_OPENSSL TRUE)
|
|
||||
-endif()
|
|
||||
+
|
|
||||
+set(HTTPLIB_IS_USING_OPENSSL TRUE)
|
|
||||
|
|
||||
if(HTTPLIB_REQUIRE_ZLIB) |
|
||||
find_package(ZLIB REQUIRED) |
|
||||
@@ -227,8 +219,8 @@ target_link_libraries(${PROJECT_NAME} ${_INTERFACE_OR_PUBLIC}
|
|
||||
$<$<BOOL:${HTTPLIB_IS_USING_BROTLI}>:Brotli::encoder> |
|
||||
$<$<BOOL:${HTTPLIB_IS_USING_BROTLI}>:Brotli::decoder> |
|
||||
$<$<BOOL:${HTTPLIB_IS_USING_ZLIB}>:ZLIB::ZLIB> |
|
||||
- $<$<BOOL:${HTTPLIB_IS_USING_OPENSSL}>:OpenSSL::SSL>
|
|
||||
- $<$<BOOL:${HTTPLIB_IS_USING_OPENSSL}>:OpenSSL::Crypto>
|
|
||||
+ $<$<BOOL:${HTTPLIB_IS_USING_OPENSSL}>:ssl>
|
|
||||
+ $<$<BOOL:${HTTPLIB_IS_USING_OPENSSL}>:crypto>
|
|
||||
) |
|
||||
|
|
||||
# Set the definitions to enable optional features |
|
||||
@ -1,14 +0,0 @@ |
|||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||
index fcb5417..f8f71e3 100644
|
|
||||
--- a/CMakeLists.txt
|
|
||||
+++ b/CMakeLists.txt
|
|
||||
@@ -109,8 +109,7 @@ if(NOT QUAZIP_QT_ZLIB_USED)
|
|
||||
|
|
||||
set(QUAZIP_LIB_LIBRARIES ${QUAZIP_LIB_LIBRARIES} ${ZLIB_LIBRARY}) |
|
||||
else() |
|
||||
- find_package(ZLIB REQUIRED)
|
|
||||
- set(QUAZIP_LIB_LIBRARIES ${QUAZIP_LIB_LIBRARIES} ZLIB::ZLIB)
|
|
||||
+ set(QUAZIP_LIB_LIBRARIES ${QUAZIP_LIB_LIBRARIES} z)
|
|
||||
endif() |
|
||||
endif() |
|
||||
|
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue