Skip to content

Commit

Permalink
RSN Parser: copy .clang-format file to the generated headers directory
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 6, 2023
1 parent a10eebf commit 1c1ea39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RenderStateNotation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ set(REFLECTED
set(RSN_PARSER_HEADERS_DIR ${CMAKE_CURRENT_BINARY_DIR}/parser_headers CACHE INTERNAL "Render State Notation Parser generated headers directory")
set(RSN_PARSER_GENERATED_HEADERS_DIR ${RSN_PARSER_HEADERS_DIR}/generated)
file(MAKE_DIRECTORY "${RSN_PARSER_GENERATED_HEADERS_DIR}")
# Copy .clang-format to the generated headers directory to make sure that another .clang-format file
# is not accidentally used.
file(COPY ../.clang-format DESTINATION "${RSN_PARSER_GENERATED_HEADERS_DIR}")

find_package(Python3 REQUIRED)

Expand Down

0 comments on commit 1c1ea39

Please sign in to comment.