Skip to content

CMake Always Fix Format and Add Enable Check Options #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore(error): set subgroups hwrap option in .cmake-format
  • Loading branch information
threeal committed Jun 28, 2023
commit 4f1eb156abd08fa6bb602147cf37f66f7f44ab5a
3 changes: 2 additions & 1 deletion error/.cmake-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"line_width": 120
"line_width": 120,
"max_subgroups_hwrap": 3
}
5 changes: 1 addition & 4 deletions error/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
endif()

# Get all targets in this directory
get_property(
TARGETS
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY BUILDSYSTEM_TARGETS)
get_property(TARGETS DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY BUILDSYSTEM_TARGETS)

foreach(TARGET IN LISTS TARGETS)
# Statically analyze code by checking for warnings
Expand Down