File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,9 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Binaries)
8181# These settings can be used by the test targets
8282set (Casablanca_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include )
8383set (Casablanca_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} /include ${Boost_INCLUDE_DIR} )
84- set (Casablanca_LIBRARY ${LIB} cpprest_2_1 )
84+ set (Casablanca_LIBRARY ${LIB} cpprest )
8585set (Casablanca_LIBRARIES ${Casablanca_LIBRARY} ${Boost_LIBRARIES} ${Boost_FRAMEWORK} )
8686
87-
8887# Everything in the project needs access to the casablanca include directories
8988include_directories (${Casablanca_INCLUDE_DIRS} )
9089
Original file line number Diff line number Diff line change @@ -76,3 +76,15 @@ target_link_libraries(${Casablanca_LIBRARY}
7676 ${COREFOUNDATION}
7777 ${EXTRALINKS}
7878 )
79+
80+ # Portions specific to cpprest binary versioning.
81+ set (CPPREST_VERSION_MAJOR 2)
82+ set (CPPREST_VERSION_MINOR 1)
83+ set (CPPREST_VERSION_REVISION 0)
84+ if (WIN32 )
85+ set_target_properties (${Casablanca_LIBRARY} PROPERTIES
86+ OUTPUT_NAME "${Casablanca_LIBRARY} _${CPPREST_VERSION_MAJOR} _${CPPREST_VERSION_MINOR} " )
87+ else ()
88+ set_target_properties (${Casablanca_LIBRARY} PROPERTIES
89+ SOVERSION ${CPPREST_VERSION_MAJOR} .${CPPREST_VERSION_MINOR} )
90+ endif ()
You can’t perform that action at this time.
0 commit comments