1
0
Fork 0
flightgear/CMakeModules/GenerateBuildInfo.cmake
James Turner 3f5a0a47ad Improved build.h generation (each build)
Use a custom_target to recursively invoke Cmake at build time; this
ensures the build ID and Git revision are always up to date.
2018-08-19 16:06:16 +01:00

8 lines
214 B
CMake

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