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)
81
81
# These settings can be used by the test targets
82
82
set (Casablanca_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include )
83
83
set (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 )
85
85
set (Casablanca_LIBRARIES ${Casablanca_LIBRARY} ${Boost_LIBRARIES} ${Boost_FRAMEWORK} )
86
86
87
-
88
87
# Everything in the project needs access to the casablanca include directories
89
88
include_directories (${Casablanca_INCLUDE_DIRS} )
90
89
Original file line number Diff line number Diff line change @@ -76,3 +76,15 @@ target_link_libraries(${Casablanca_LIBRARY}
76
76
${COREFOUNDATION}
77
77
${EXTRALINKS}
78
78
)
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