Skip to content

Commit

Permalink
Add VERBATIM to generation of gitrevision.h when not in a git repo
Browse files Browse the repository at this point in the history
This is a quirk in CMake which is about making quoting non-platform specific.

This fixes #198.
  • Loading branch information
thoni56 committed Aug 8, 2019
1 parent e840665 commit a8cd723
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ else()
# e.g. when the software is built from a source tarball
add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/gitrevision.h
COMMAND ${CMAKE_COMMAND} -E echo "#define GITREVISION \"unknown\"" > ${CMAKE_SOURCE_DIR}/gitrevision.h
VERBATIM
)
endif()

Expand Down

0 comments on commit a8cd723

Please sign in to comment.