CMake: Set -D__NO_STATM_ACCESS on BSD

This commit is contained in:
Ole Schütt 2026-01-13 13:21:59 +01:00 committed by Ole Schütt
parent 3c2ea2d94a
commit cc4239a96c
2 changed files with 4 additions and 8 deletions

View file

@ -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

View file

@ -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",
)