1
0
Fork 0

Rename buildId header file

Avoid the very common name ‘build.h’ in favour of something clearer
and FlightGear specific.
This commit is contained in:
James Turner 2020-08-24 14:32:22 +01:00
parent 178d1beb80
commit cf424e4344
8 changed files with 8 additions and 8 deletions

View file

@ -467,7 +467,7 @@ configure_file (
"${PROJECT_BINARY_DIR}/src/Include/config.h"
)
# Setup build.h header, each build
# Setup flightgearBuildId.h header, each build
include( GenerateBuildInfo )
# global includes: these are used by every single target, so we do set them globally

View file

@ -2,7 +2,7 @@
add_custom_target(
buildId
${CMAKE_COMMAND} -D SRC=${CMAKE_SOURCE_DIR}
-D DST=${CMAKE_BINARY_DIR}/src/Include/build.h
-D DST=${CMAKE_BINARY_DIR}/src/Include/flightgearBuildId.h
-P ${CMAKE_SOURCE_DIR}/CMakeModules/buildId.cmake
)

View file

@ -17,4 +17,4 @@ else()
set(REVISION "none")
endif()
configure_file (${SRC}/src/Include/build.h.cmake-in ${DST})
configure_file (${SRC}/src/Include/flightgearBuildId.h.cmake-in ${DST})

View file

@ -1,4 +1,4 @@
// template file to produce build.h header
// template file to produce flightgearBuildId.h header
// this is produced at build time (not Cmake time) via the special
// target defined by GenerateBuildInfo.Cmake
// this ensures the info is always up to date, which does not happen

View file

@ -59,7 +59,7 @@
#include <Viewer/fgviewer.hxx>
#include "main.hxx"
#include <Include/build.h>
#include <flightgearBuildId.h>
#include <Main/globals.hxx>
#include <Main/fg_init.hxx>
#include <Main/options.hxx>

View file

@ -61,7 +61,7 @@
#include <Viewer/renderer.hxx>
#include <Viewer/WindowSystemAdapter.hxx>
#include <Navaids/NavDataCache.hxx>
#include <Include/build.h>
#include <flightgearBuildId.h>
#include "fg_commands.hxx"
#include "fg_io.hxx"

View file

@ -80,7 +80,7 @@
#include "AircraftDirVisitorBase.hxx"
#include <osg/Version>
#include <Include/build.h>
#include <flightgearBuildId.h>
#include <simgear/version.h>
using std::string;

View file

@ -35,7 +35,7 @@
#include <FDM/flightProperties.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <Include/build.h>
#include <flightgearBuildId.h>
#include "flarm.hxx"