Skip to content

Commit

Permalink
Suppress CMake warnings (#372)
Browse files Browse the repository at this point in the history
* suppress cmake warnings

* fix pre-commit

---------
  • Loading branch information
egecetin authored Jan 18, 2025
1 parent def54e1 commit 3e1c94f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
rev: 0.18.0
hooks:
- id: gersemi
args: ['-c']
args: ['-i']
- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
hooks:
Expand Down
4 changes: 3 additions & 1 deletion cmake/CompilerSecurityOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ list(REMOVE_ITEM COMPILER_SECURE_FLAGS_ENABLED ${COMPILER_SECURE_FLAGS_DISABLED}

# Enable flags
message(STATUS "Supported hardening flags: ${COMPILER_SECURE_FLAGS_ENABLED}")
message(WARNING "Not supported hardening flags: ${COMPILER_SECURE_FLAGS_DISABLED}")
if(NOT "${COMPILER_SECURE_FLAGS_DISABLED}" STREQUAL "")
message(WARNING "Not supported hardening flags: ${COMPILER_SECURE_FLAGS_DISABLED}")
endif()

if(ENABLE_RECOMMENDED_SECURITY_FLAGS)
add_compile_options(${COMPILER_SECURE_FLAGS_ENABLED})
Expand Down
5 changes: 3 additions & 2 deletions cmake/GraphViz.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ if(DOT_EXE)
add_custom_command(
TARGET dependency-graph
POST_BUILD
COMMAND ;
COMMENT "Dependency graph generated and located at ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-tree.${DOT_OUTPUT_TYPE}"
COMMAND
${CMAKE_COMMAND} -E echo
"Dependency graph generated and located at ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-tree.${DOT_OUTPUT_TYPE}" ;
)
endif()

0 comments on commit 3e1c94f

Please sign in to comment.