File tree Expand file tree Collapse file tree 8 files changed +37
-11
lines changed
Expand file tree Collapse file tree 8 files changed +37
-11
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ project(simdjson
77
88set (PROJECT_VERSION_MAJOR 0)
99set (PROJECT_VERSION_MINOR 4)
10- set (PROJECT_VERSION_PATCH 4 )
11- set (SIMDJSON_LIB_VERSION "0.4.4 " CACHE STRING "simdjson library version" )
10+ set (PROJECT_VERSION_PATCH 5 )
11+ set (SIMDJSON_LIB_VERSION "0.4.5 " CACHE STRING "simdjson library version" )
1212set (SIMDJSON_LIB_SOVERSION "2" CACHE STRING "simdjson library soversion" )
1313set (SIMDJSON_GITHUB_REPOSITORY https://github.com/simdjson/simdjson)
1414
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ PROJECT_NAME = simdjson
3838# could be handy for archiving the generated documentation or if some version
3939# control system is used.
4040
41- PROJECT_NUMBER = "0.4.4 "
41+ PROJECT_NUMBER = "0.4.5 "
4242
4343# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444# for a project that appears at the top of each page and should give viewer a
Original file line number Diff line number Diff line change 44#define SIMDJSON_SIMDJSON_VERSION_H
55
66/* * The version of simdjson being used (major.minor.revision) */
7- #define SIMDJSON_VERSION 0.4.4
7+ #define SIMDJSON_VERSION 0.4.5
88
99namespace simdjson {
1010enum {
1919 /* *
2020 * The revision (major.minor.REVISION) of simdjson being used.
2121 */
22- SIMDJSON_VERSION_REVISION = 4
22+ SIMDJSON_VERSION_REVISION = 5
2323};
2424} // namespace simdjson
2525
Original file line number Diff line number Diff line change 1- /* auto-generated on Tue 30 Jun 2020 09:41:13 EDT. Do not edit! */
1+ /* auto-generated on Tue Jun 30 19:29:34 EDT 2020 . Do not edit! */
22
33#include < iostream>
44#include " simdjson.h"
Original file line number Diff line number Diff line change 1- /* auto-generated on Tue 30 Jun 2020 09:41:13 EDT. Do not edit! */
1+ /* auto-generated on Tue Jun 30 19:29:34 EDT 2020 . Do not edit! */
22/* begin file src/simdjson.cpp */
33#include "simdjson.h"
44
Original file line number Diff line number Diff line change 1- /* auto-generated on Tue 30 Jun 2020 09:41:13 EDT. Do not edit! */
1+ /* auto-generated on Tue Jun 30 19:29:34 EDT 2020 . Do not edit! */
22/* begin file include/simdjson.h */
33#ifndef SIMDJSON_H
44#define SIMDJSON_H
@@ -2040,7 +2040,7 @@ SIMDJSON_DISABLE_UNDESIRED_WARNINGS
20402040#define SIMDJSON_SIMDJSON_VERSION_H
20412041
20422042/** The version of simdjson being used (major.minor.revision) */
2043- #define SIMDJSON_VERSION 0.4.4
2043+ #define SIMDJSON_VERSION 0.4.5
20442044
20452045namespace simdjson {
20462046enum {
@@ -2055,7 +2055,7 @@ enum {
20552055 /**
20562056 * The revision (major.minor.REVISION) of simdjson being used.
20572057 */
2058- SIMDJSON_VERSION_REVISION = 4
2058+ SIMDJSON_VERSION_REVISION = 5
20592059};
20602060} // namespace simdjson
20612061
Original file line number Diff line number Diff line change @@ -78,7 +78,17 @@ if(NOT MSVC)
7878 ## We output the library at the root of the current directory where cmake is invoked
7979 ## This is handy but Visual Studio will happily ignore us
8080 set_target_properties (simdjson PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} )
81- MESSAGE ( STATUS "Library output directory (does not apply to Visual Studio): " ${PROJECT_BINARY_DIR} )
81+ MESSAGE ( STATUS "Library output directory: " ${PROJECT_BINARY_DIR} )
82+
83+ ############
84+ # Please do not delete the following, our users want version numbers. See
85+ # https://github.com/simdjson/simdjson/issues/1014
86+ # https://github.com/simdjson/simdjson/issues/52
87+ ###########
88+ set_target_properties (simdjson PROPERTIES VERSION ${SIMDJSON_LIB_VERSION} SOVERSION ${SIMDJSON_LIB_SOVERSION} )
89+ ##########
90+ # End of the do-not-delete message.
91+ #########
8292endif ()
8393
8494#
Original file line number Diff line number Diff line change @@ -177,4 +177,20 @@ endif()
177177# target_link_libraries(singleheader simdjson simdjson-flags)
178178# add_test(singleheader singleheader)
179179
180+ if (NOT MSVC )
181+ ######
182+ # This tests is to guard us against ever again removing the soversion
183+ # and version numbers from the library. See Bug
184+ # https://github.com/simdjson/simdjson/issues/1014
185+ #####
186+ get_target_property (REPORTED_SIMDJSON_VERSION simdjson VERSION )
187+ 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+ if (NOT ${REPORTED_SIMDJSON_SOVERSION} STREQUAL ${SIMDJSON_LIB_SOVERSION} )
192+ message (FATAL_ERROR "The library target does not have the proper soversion information." )
193+ endif ()
194+ endif ()
195+
180196add_subdirectory (compilation_failure_tests )
You can’t perform that action at this time.
0 commit comments