From cc4239a96c90cd8adf95365a7ceaa25637abbc6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Tue, 13 Jan 2026 13:21:59 +0100 Subject: [PATCH] CMake: Set -D__NO_STATM_ACCESS on BSD --- cmake/CompilerConfiguration.cmake | 5 ++++- tools/precommit/check_file_properties.py | 7 ------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cmake/CompilerConfiguration.cmake b/cmake/CompilerConfiguration.cmake index b42df5bff6..7fb96935c9 100644 --- a/cmake/CompilerConfiguration.cmake +++ b/cmake/CompilerConfiguration.cmake @@ -60,7 +60,10 @@ if(APPLE set(_CP2K_GNU_NATIVE_TUNE "-mcpu=native") endif() if(APPLE) - add_definitions(-D__MACOSX -D__NO_STATM_ACCESS) + add_definitions(-D__MACOSX) +endif() +if(APPLE OR BSD) + add_definitions(-D__NO_STATM_ACCESS) endif() # Release diff --git a/tools/precommit/check_file_properties.py b/tools/precommit/check_file_properties.py index 2dc61c09d6..e023170fb7 100755 --- a/tools/precommit/check_file_properties.py +++ b/tools/precommit/check_file_properties.py @@ -85,13 +85,6 @@ FLAG_EXCEPTIONS = ( r"__PW_FPGA_SP", r"__NO_SOCKETS", r"__SCALAPACK_NO_WA", - r"__CRAY_PM_ACCEL_ENERGY", - r"__CRAY_PM_ENERGY", - r"__NO_STATM_ACCESS", - r"__STATM_RESIDENT", - r"__STATM_TOTAL", - r"__CRAY_PM_ACCEL_ENERGY", - r"__CRAY_PM_ENERGY", r"__STATM_RESIDENT", r"__STATM_TOTAL", )