Skip to content
Permalink
Browse files

tools: generate template.h in build folder

The template.h is generated when building the rtr tools.
The resulting file is now create in the build and not the
source directory. This avoids that template.h shows up in
`git status` and also that someone might commit the file
in to the repo by accident.
  • Loading branch information...
smlng committed Jul 8, 2019
1 parent 4536bb0 commit b3bfd84147c8b05e8c42d7d9679975831b70f99f
Showing with 2 additions and 1 deletion.
  1. +2 −1 tools/CMakeLists.txt
@@ -32,5 +32,6 @@ endforeach()

string(STRIP ${TEMPLATES} TEMPLATES)

CONFIGURE_FILE("templates.h.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/templates.h")
CONFIGURE_FILE(templates.h.cmake templates.h)

include_directories(${CMAKE_CURRENT_BINARY_DIR})

0 comments on commit b3bfd84

Please sign in to comment.
You can’t perform that action at this time.