Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ports/microsoft-signalr/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Source: microsoft-signalr
Version: 0.1.0-alpha1-1
Version: 0.1.0-alpha1
Port-Version: 2
Description: C++ Client for ASP.NET Core SignalR.
Default-Features: default-features
Homepage: https://github.com/aspnet/SignalR-Client-Cpp
Expand Down
3 changes: 2 additions & 1 deletion ports/microsoft-signalr/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ vcpkg_from_github(
REF v0.1.0-alpha1
SHA512 d37eea194b0352a08dd89ac7622bdd6224312ad48a31d8ab36627a8aaff5e795e3513ad010eed516703f6da842a95119c1a4a290b145a43e91ff80a37fff8676
HEAD_REF master
PATCHES remove-fno-rtti-compile-option.patch
)

vcpkg_check_features(
Expand All @@ -30,6 +31,6 @@ vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(COPY ${SOURCE_PATH}/third-party-notices.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/microsoft-signalr)
file(COPY ${SOURCE_PATH}/third-party-notices.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})

vcpkg_copy_pdbs()
15 changes: 15 additions & 0 deletions ports/microsoft-signalr/remove-fno-rtti-compile-option.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/src/signalrclient/CMakeLists.txt b/src/signalrclient/CMakeLists.txt
index 42d64d3..10fa72f 100644
--- a/src/signalrclient/CMakeLists.txt
+++ b/src/signalrclient/CMakeLists.txt
@@ -58,10 +58,6 @@ else()
target_compile_options(signalrclient PRIVATE -Wall)
endif()

- # GCC on OSX has a bug with exceptions and no-rtti that can cause crashes
- if(NOT APPLE)
- target_compile_options(signalrclient PRIVATE -fno-rtti)
- endif()
Comment thread
strega-nil marked this conversation as resolved.
Outdated
target_compile_options(signalrclient PRIVATE -Wextra -Wpedantic -Wno-unknown-pragmas)
endif()