Skip to content

Commit 047c67b

Browse files
author
Roberto Di Remigio
committed
Generate build info header in build directory (where also other autogenerated headers are)
1 parent cd53296 commit 047c67b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/build-info/BuildInfo.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include(ConfigGitRevision)
22

33
# Generate the BuildInfo.hpp header only if the logger was enabled
4-
if (ENABLE_LOGGER)
4+
if(ENABLE_LOGGER)
55
execute_process(
66
COMMAND ${PYTHON_EXECUTABLE} -c "import getpass; print getpass.getuser()"
77
TIMEOUT 1
@@ -23,7 +23,7 @@ if (ENABLE_LOGGER)
2323

2424
add_custom_target(
2525
generate_build_info
26-
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/build_info.py > ${CMAKE_SOURCE_DIR}/src/utils/BuildInfo.hpp
26+
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/build_info.py > ${CMAKE_BINARY_DIR}/include/BuildInfo.hpp
2727
COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_BINARY_DIR}/build_info.py
2828
)
2929

0 commit comments

Comments
 (0)