Commit cd7aece1 authored by Andreas Schuh's avatar Andreas Schuh

Use major version number only as SOVERSION.

parent bf889786
...@@ -22,7 +22,7 @@ version_numbers ( ...@@ -22,7 +22,7 @@ version_numbers (
PACKAGE_VERSION_PATCH PACKAGE_VERSION_PATCH
) )
set (PACKAGE_SOVERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}") set (PACKAGE_SOVERSION "${PACKAGE_VERSION_MAJOR}")
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# options # options
...@@ -258,10 +258,9 @@ foreach (TYPE IN ITEMS STATIC SHARED) ...@@ -258,10 +258,9 @@ foreach (TYPE IN ITEMS STATIC SHARED)
endif () endif ()
set_target_properties ( set_target_properties (
gflags${opts}-${type} PROPERTIES COMPILE_DEFINITIONS "${defines}" gflags${opts}-${type} PROPERTIES COMPILE_DEFINITIONS "${defines}"
OUTPUT_NAME "gflags${opts}" OUTPUT_NAME "gflags${opts}"
# Set VERSION instead of SOVERSION such VERSION "${PACKAGE_VERSION}"
# that it is also used on Windows SOVERSION "${PACKAGE_SOVERSION}"
VERSION "${PACKAGE_SOVERSION}"
) )
if (HAVE_SHLWAPI_H) if (HAVE_SHLWAPI_H)
target_link_libraries (gflags${opts}-${type} shlwapi.lib) target_link_libraries (gflags${opts}-${type} shlwapi.lib)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment