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