Fixed: #1066 Don't put VERSION in executables

This commit is contained in:
kervala 2010-08-08 10:26:47 +02:00
parent 4e101bd4bb
commit 3462b8edf3

View file

@ -37,9 +37,13 @@ ENDMACRO(NL_TARGET_DRIVER)
# Argument: # Argument:
### ###
MACRO(NL_DEFAULT_PROPS name label) MACRO(NL_DEFAULT_PROPS name label)
SET_TARGET_PROPERTIES(${name} PROPERTIES GET_TARGET_PROPERTY(type ${name} TYPE)
VERSION ${NL_VERSION} IF(${type} STREQUAL SHARED_LIBRARY)
SOVERSION ${NL_VERSION_MAJOR} # 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}) PROJECT_LABEL ${label})
ENDMACRO(NL_DEFAULT_PROPS) ENDMACRO(NL_DEFAULT_PROPS)