Skip to content

Commit

Permalink
Patch to get e.g. "cpprest140d_2_10.dll" as described in microsoft#577
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb committed Nov 9, 2017
1 parent a24b81a commit 9bea093
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Release/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,18 @@ elseif(WINDOWS_STORE)
endif()

if(WIN32)
set_target_properties(cpprest PROPERTIES
OUTPUT_NAME "cpprest_${CPPREST_VERSION_MAJOR}_${CPPREST_VERSION_MINOR}")
string(SUBSTRING ${CMAKE_VS_PLATFORM_TOOLSET} 1 -1 TOOLSET)
set(CPPREST_VERSION_POSTFIX "_${CPPREST_VERSION_MAJOR}_${CPPREST_VERSION_MINOR}")
foreach(CFG ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER ${CFG} CFG)
get_target_property(CFG_POSTFIX cpprest ${CFG}_POSTFIX)
if (NOT CFG_POSTFIX)
# forget "NOTFOUND"
set(CFG_POSTFIX)
endif()
set_target_properties(cpprest PROPERTIES
${CFG}_POSTFIX "${TOOLSET}${CFG_POSTFIX}${CPPREST_VERSION_POSTFIX}")
endforeach()
elseif(ANDROID)
# Do not use SOVERSION on android. It is completely unsupported (and causes problems).
# Perhaps revisit in the future? (NDK r9d, 8/7/14)
Expand Down

0 comments on commit 9bea093

Please sign in to comment.