diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2018-08-13 21:38:44 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2018-08-13 21:38:44 -0700 |
commit | cb4a74d5e59bdf3441902683c4cd6e09b719f9ba (patch) | |
tree | 8bf73ec2441a5663293094a7b1679ce45ff68808 | |
parent | c51214f21ecd34dd6f0058f84d585fc2b06b4701 (diff) | |
download | pugixml-cb4a74d5e59bdf3441902683c4cd6e09b719f9ba.zip pugixml-cb4a74d5e59bdf3441902683c4cd6e09b719f9ba.tar.gz pugixml-cb4a74d5e59bdf3441902683c4cd6e09b719f9ba.tar.bz2 |
Minor CMakeLists.txt cleanup
Instead of hardcoding SOVERSION, use CMake variables to set it up.
Closes #220.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d322a63..ddc5a5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,7 +53,7 @@ if(NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STRLESS 3.1 AND ";${CMAKE_C target_compile_features(pugixml PUBLIC cxx_long_long_type) endif() -set_target_properties(pugixml PROPERTIES VERSION ${pugixml_VERSION} SOVERSION 1) +set_target_properties(pugixml PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) if(USE_VERSIONED_LIBDIR) # Install library into its own directory under LIBDIR |