]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Makefile: generate util/build_version.cc from .in file wip-cmake-build-version 13/head
authorKefu Chai <tchaikov@gmail.com>
Tue, 11 Oct 2016 07:13:09 +0000 (15:13 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 11 Oct 2016 07:17:19 +0000 (15:17 +0800)
commit6715850e5419c86b60ac4756bfc94ca3531b3414
tree31a17f3baeaf8361a0e14c6d8c7452c9f3e4861b
parentaea3ce4c8378fe96096175bab3a2be07a0155890
Makefile: generate util/build_version.cc from .in file

* util/build_verion.cc.in: add this file, so cmake and make can share the
  template file for generating util/build_version.cc.
* CMakeLists.txt: also, cmake v2.8.11 does not support file(GENERATE ...),
  so we are using configure_file() for creating build_version.cc.
* Makefile: use util/build_verion.cc.in for creating build_version.cc.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
CMakeLists.txt
Makefile
util/build_version.cc.in [new file with mode: 0644]