~michihenning/storage-framework/remove-qfuture-overloads

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: James Henstridge
  • Date: 2016-07-22 08:38:24 UTC
  • mfrom: (33.1.4 sf-multi-landing)
  • Revision ID: james@jamesh.id.au-20160722083824-9txlx0r3i4on7rhv
Add support for landing to multiple distro series with different sonames 
for the provider library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# source incompatible version of the the library where users of the
12
12
# old API could will not compile against the new one.  It is not
13
13
# necessary to increment this for ABI breaks that are source compatible.
 
14
set(SF_CLIENT_API_VERSION "1")
14
15
set(SF_PROVIDER_API_VERSION "1")
15
 
set(SF_CLIENT_API_VERSION "1")
16
16
 
17
17
# These two should be incremented when the ABI changes.
18
 
set(SF_PROVIDER_SOVERSION "0")
19
18
set(SF_CLIENT_SOVERSION "0")
 
19
execute_process(
 
20
  COMMAND /bin/sh ${CMAKE_CURRENT_SOURCE_DIR}/get-provider-soversion.sh
 
21
  OUTPUT_VARIABLE SF_PROVIDER_SOVERSION
 
22
  OUTPUT_STRIP_TRAILING_WHITESPACE
 
23
  RESULT_VARIABLE result)
 
24
if(NOT result EQUAL 0)
 
25
  message(FATAL_ERROR "Error running get-provider-soversion.sh script")
 
26
endif()
20
27
 
 
28
set(SF_CLIENT_LIBVERSION "${SF_CLIENT_SOVERSION}.${PROJECT_VERSION}")
21
29
set(SF_PROVIDER_LIBVERSION "${SF_PROVIDER_SOVERSION}.${PROJECT_VERSION}")
22
 
set(SF_CLIENT_LIBVERSION "${SF_CLIENT_SOVERSION}.${PROJECT_VERSION}")
23
30
 
24
31
 
25
32
string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_lower) # Build types should always be lower case