[rocprofiler-systems] Apply new CMake formatting for the latest gersemi version (#1778)

* Fix cmake formatting

* Updated rev. in `.pre-commit-config.yaml`

* Pin the gersemi used in CI to v0.23.1, matching the pre-commit

---------

Co-authored-by: Aleksandar Djordjevic <adjordje@amd.com>
Co-authored-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
Aleksandar Djordjevic
2025-11-10 19:08:44 +01:00
committed by GitHub
parent 42cc721a4b
commit f39a60ac25
15 changed files with 53 additions and 103 deletions
@@ -79,8 +79,7 @@ else()
if(EXISTS "${LibDebuginfod_INCLUDE_DIRS}/version.h")
file(
STRINGS
"${LibDebuginfod_INCLUDE_DIRS}/version.h"
STRINGS "${LibDebuginfod_INCLUDE_DIRS}/version.h"
_version_line
REGEX "^#define _ELFUTILS_VERSION[ \t]+[0-9]+"
)