1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/diligent-engine/no-clang-format.patch
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 diff --git a/DiligentTools/RenderStateNotation/CMakeLists.txt b/DiligentTools/RenderStateNotation/CMakeLists.txt
15 index 429f29c..9ffa3b5 100644
16 --- a/DiligentTools/RenderStateNotation/CMakeLists.txt
17 +++ b/DiligentTools/RenderStateNotation/CMakeLists.txt
18 @@ -45,11 +45,7 @@ source_group("generated" FILES ${GENERATED})
19 source_group("source" FILES ${SOURCE})
20 source_group("scripts" FILES ${SCRIPTS})
22 -if (EXISTS "${CLANG_FORMAT_EXECUTABLE}")
23 - set(FORMATTING_COMMAND "${CLANG_FORMAT_EXECUTABLE}" -i *.hpp --verbose)
25 - set(FORMATTING_COMMAND "${CMAKE_COMMAND}" -E echo "clang-format executable is not found: RSN parser headers will not be formatted")
27 +set(FORMATTING_COMMAND "${CMAKE_COMMAND}" -E echo "clang-format executable is not found: RSN parser headers will not be formatted")
29 add_custom_command(OUTPUT ${GENERATED}
30 COMMAND ${Python3_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/scripts/cxx_generator.py" --dir "." --files ${REFLECTED}