From 3aa23a1b4c809f2eacaa82270f71ac5cba804ec4 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 8 Aug 2010 10:26:47 +0200 Subject: [PATCH] Fixed: #1066 Don't put VERSION in executables --- code/nel/CMakeModules/nel.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/nel/CMakeModules/nel.cmake b/code/nel/CMakeModules/nel.cmake index 3b705fc13..8ea021c70 100644 --- a/code/nel/CMakeModules/nel.cmake +++ b/code/nel/CMakeModules/nel.cmake @@ -37,9 +37,13 @@ ENDMACRO(NL_TARGET_DRIVER) # Argument: ### MACRO(NL_DEFAULT_PROPS name label) - SET_TARGET_PROPERTIES(${name} PROPERTIES - VERSION ${NL_VERSION} - SOVERSION ${NL_VERSION_MAJOR} + GET_TARGET_PROPERTY(type ${name} TYPE) + IF(${type} STREQUAL SHARED_LIBRARY) + # Set versions only if target is a shared library + SET(versions VERSION ${NL_VERSION} SOVERSION ${NL_VERSION_MAJOR}) + ENDIF(${type} STREQUAL SHARED_LIBRARY) + SET_TARGET_PROPERTIES(${name} PROPERTIES + ${versions} PROJECT_LABEL ${label}) ENDMACRO(NL_DEFAULT_PROPS)