diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-06-12 21:13:27 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-06-12 21:13:39 -0700 |
| commit | e5253d22d264985f632aca4d13de365e6557b720 (patch) | |
| tree | 4ca89f69ee7a3560c002cd53ecbe155b7b7a542e | |
| parent | 66b71a0fba11760073517dde3682cf5a66903e7b (diff) | |
| download | vcpkg-e5253d22d264985f632aca4d13de365e6557b720.tar.gz vcpkg-e5253d22d264985f632aca4d13de365e6557b720.zip | |
[cpp-redis] Fix non-Windows builds
| -rw-r--r-- | ports/cpp-redis/portfile.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ports/cpp-redis/portfile.cmake b/ports/cpp-redis/portfile.cmake index 9187e344f..c9feba68d 100644 --- a/ports/cpp-redis/portfile.cmake +++ b/ports/cpp-redis/portfile.cmake @@ -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} |
