From 01edb04ad5f8e08fcec6087f26d68ad57ce18dbb Mon Sep 17 00:00:00 2001 From: laurentgom Date: Wed, 3 Nov 2010 17:39:17 +0000 Subject: [PATCH] Added the version and soversion of SFML libraries in CMake files git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1601 4e206d99-4929-0410-ac5d-dfc041789085 --- cmake/Macros.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 581b6fe1..f875b496 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -112,6 +112,10 @@ macro(sfml_add_library target) set_target_properties(${target} PROPERTIES DEBUG_POSTFIX -s-d) set_target_properties(${target} PROPERTIES RELEASE_POSTFIX -s) endif() + + # set the version and soversion of the target (for compatible systems -- mostly Linuxes) + set_target_properties(${target} PROPERTIES SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR}) + set_target_properties(${target} PROPERTIES VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) # insert the major version number in the output filename string(REGEX REPLACE "sfml(-.*)" "sfml${VERSION_MAJOR}\\1" OUTPUT_NAME ${target})