File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,9 @@ add_subdirectory(windows)
47
47
if (NOT (SIMDJSON_JUST_LIBRARY))
48
48
add_subdirectory (dependencies) ## This needs to be before tools because of cxxopts
49
49
add_subdirectory (tools) ## This needs to be before tests because of cxxopts
50
+ add_subdirectory (singleheader)
50
51
endif ()
51
- add_subdirectory ( singleheader)
52
+ install ( FILES singleheader/simdjson.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
52
53
53
54
#
54
55
# Compile tools / tests / benchmarks
Original file line number Diff line number Diff line change @@ -84,8 +84,16 @@ if(NOT MSVC)
84
84
# Please do not delete the following, our users want version numbers. See
85
85
# https://github.com/simdjson/simdjson/issues/1014
86
86
# https://github.com/simdjson/simdjson/issues/52
87
- ###########
88
- set_target_properties (simdjson PROPERTIES VERSION ${SIMDJSON_LIB_VERSION} SOVERSION ${SIMDJSON_LIB_SOVERSION} )
87
+ ###########
88
+ # We deliberately omit VERSION ${SIMDJSON_LIB_VERSION} since our version numbers do not follow
89
+ # the sonumber. The important point is that the soversion matches ABI compatibility. In simdjson
90
+ # version 0.2.0, 0.3.0 and 0.4.0 are not binary compatible.
91
+ #
92
+ # The soversion and the library version numbers are different numbers. It is common but
93
+ # not universal that the major version number is also the soversion number. However, there
94
+ # are notable exceptions. For example, glibc version 2.23 has a soversion of 6.
95
+ ############
96
+ set_target_properties (simdjson PROPERTIES SOVERSION ${SIMDJSON_LIB_SOVERSION} )
89
97
##########
90
98
# End of the do-not-delete message.
91
99
#########
Original file line number Diff line number Diff line change @@ -180,14 +180,10 @@ endif()
180
180
if (NOT MSVC )
181
181
######
182
182
# This tests is to guard us against ever again removing the soversion
183
- # and version numbers from the library. See Bug
183
+ # number from the library. See Bug
184
184
# https://github.com/simdjson/simdjson/issues/1014
185
185
#####
186
- get_target_property (REPORTED_SIMDJSON_VERSION simdjson VERSION )
187
186
get_target_property (REPORTED_SIMDJSON_SOVERSION simdjson SOVERSION )
188
- if (NOT ${REPORTED_SIMDJSON_VERSION} STREQUAL ${SIMDJSON_LIB_VERSION} )
189
- message (FATAL_ERROR "The library target does not have the proper version information." )
190
- endif ()
191
187
if (NOT ${REPORTED_SIMDJSON_SOVERSION} STREQUAL ${SIMDJSON_LIB_SOVERSION} )
192
188
message (FATAL_ERROR "The library target does not have the proper soversion information." )
193
189
endif ()
You can’t perform that action at this time.
0 commit comments