In order to reference variable values using '@VAR@' forms, VAR should be
defined using the 'set' cmake command. However, 'instead of 'VERSION',
since '-DVERSION' is defined using 'add_definitions', @VERSION@ could
not be properly substitued. As a result, the 'Version' field in the
pkg-config file for nnstreamer only contains a white space. This patch
fixes this issue.
Signed-off-by: Wook Song <wook16.song@samsung.com>
MESSAGE(STATUS "The nnstreamer elements will be created as multple plugin binaries, one binary for one element. This is no more the standard method to release since nnstreamer 0.0.3.")
ENDIF(SINGLE_BINARY)
-ADD_DEFINITIONS(-DVERSION="0.0.3")
+SET(VERSION "0.0.3")
+ADD_DEFINITIONS(-DVERSION="${VERSION}")
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(EXEC_PREFIX "${PREFIX}/bin")