generate versions.target with cmake
This commit is contained in:
parent
b93d8e8b21
commit
b616a6b3b6
|
@ -94,3 +94,4 @@ flow/coveragetool/obj
|
|||
.envrc
|
||||
.DS_Store
|
||||
temp/
|
||||
/versions.target
|
||||
|
|
|
@ -83,6 +83,7 @@ message(STATUS "Current git version ${CURRENT_GIT_VERSION}")
|
|||
set(FDB_PACKAGE_NAME "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
||||
set(FDB_VERSION ${PROJECT_VERSION})
|
||||
set(FDB_VERSION_PLAIN ${FDB_VERSION})
|
||||
configure_file(${CMAKE_SOURCE_DIR}/versions.target.cmake ${CMAKE_SOURCE_DIR}/versions.target)
|
||||
|
||||
message(STATUS "FDB version is ${FDB_VERSION}")
|
||||
message(STATUS "FDB package name is ${FDB_PACKAGE_NAME}")
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Version>${CMAKE_PROJECT_VERSION}</Version>
|
||||
<PackageName>${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}</PackageName>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Loading…
Reference in New Issue