Skip to content

Commit

Permalink
Guard ClangFormat setup behind PROJECT_IS_TOP_LEVEL too (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Nov 6, 2024
1 parent d9e0e68 commit 95699ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ if(REGISTRY_SERVER)
add_subdirectory(src/server)
endif()

if(REGISTRY_DEVELOPMENT)
if(PROJECT_IS_TOP_LEVEL AND REGISTRY_DEVELOPMENT)
noa_target_clang_format(SOURCES src/*.h src/*.cc)
endif()

0 comments on commit 95699ee

Please sign in to comment.