Skip to content

Commit

Permalink
[cpp-redis] Fix non-Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Jun 13, 2018
1 parent 66b71a0 commit e5253d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ports/cpp-redis/portfile.cmake
Expand Up @@ -16,9 +16,11 @@ else()
set(MSVC_RUNTIME_LIBRARY_CONFIG "/MT")
endif()

# cpp-redis forcibly removes "/RTC1" in its cmake file. Because this is an ABI-sensitive flag, we need to re-add it in a form that won't be detected.
set(VCPKG_CXX_FLAGS_DEBUG "${VCPKG_CXX_FLAGS_DEBUG} -RTC1")
set(VCPKG_C_FLAGS_DEBUG "${VCPKG_C_FLAGS_DEBUG} -RTC1")
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME)
# cpp-redis forcibly removes "/RTC1" in its cmake file. Because this is an ABI-sensitive flag, we need to re-add it in a form that won't be detected.
set(VCPKG_CXX_FLAGS_DEBUG "${VCPKG_CXX_FLAGS_DEBUG} -RTC1")
set(VCPKG_C_FLAGS_DEBUG "${VCPKG_C_FLAGS_DEBUG} -RTC1")
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
Expand Down

0 comments on commit e5253d2

Please sign in to comment.