[CMAKE] Set VERSION to use @VERSION@ in input file of config_file
authorWook Song <wook16.song@samsung.com>
Wed, 24 Oct 2018 04:21:12 +0000 (13:21 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Wed, 24 Oct 2018 05:22:06 +0000 (14:22 +0900)
commit1d953c529e71045a90f9df588011bc2f91fc5552
tree5fe3562f649588cbcef9e729456e39b176e048a8
parent228e38d2d7b2c72dde92f3b2755343bd24090a65
[CMAKE] Set VERSION to use @VERSION@ in input file of config_file

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>
CMakeLists.txt