mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-21 14:35:15 -04:00
Add NOT APPLE condition to linker option guard (#5369)
This commit is contained in:
parent
c6fe882990
commit
9c2e77385f
1 changed files with 3 additions and 1 deletions
|
|
@ -226,6 +226,8 @@ if(CMAKE_C_COMPILER_ID STREQUAL "Cray" AND CMAKE_C_COMPILER_VERSION
|
|||
endif()
|
||||
|
||||
# Suppress GFortran runtime warnings when LIBXS provides the wrapper
|
||||
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND CP2K_USE_LIBXS)
|
||||
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU"
|
||||
AND CP2K_USE_LIBXS
|
||||
AND NOT APPLE)
|
||||
add_link_options("-Wl,--wrap=_gfortran_runtime_warning_at")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue