We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd53296 commit 047c67bCopy full SHA for 047c67b
cmake/build-info/BuildInfo.cmake
@@ -1,7 +1,7 @@
1
include(ConfigGitRevision)
2
3
# Generate the BuildInfo.hpp header only if the logger was enabled
4
-if (ENABLE_LOGGER)
+if(ENABLE_LOGGER)
5
execute_process(
6
COMMAND ${PYTHON_EXECUTABLE} -c "import getpass; print getpass.getuser()"
7
TIMEOUT 1
@@ -23,7 +23,7 @@ if (ENABLE_LOGGER)
23
24
add_custom_target(
25
generate_build_info
26
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/build_info.py > ${CMAKE_SOURCE_DIR}/src/utils/BuildInfo.hpp
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/build_info.py > ${CMAKE_BINARY_DIR}/include/BuildInfo.hpp
27
COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_BINARY_DIR}/build_info.py
28
)
29
0 commit comments