Skip to content

Commit 8da5a57

Browse files
committed
oneAPI: use -standard-semantics
1 parent 11d7a2e commit 8da5a57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/compilers.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ add_compile_options(-Wall -Wextra
136136
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
137137
add_compile_options(
138138
"$<$<COMPILE_LANGUAGE:Fortran>:-warn>"
139-
"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<NOT:$<BOOL:${WIN32}>>>:-fpscomp;logicals>"
139+
"$<$<COMPILE_LANGUAGE:Fortran>:-standard-semantics>"
140140
"$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug,RelWithDebInfo>>:-traceback;-check;-debug>"
141141
$<$<AND:$<COMPILE_LANGUAGE:Fortran>,$<CONFIG:Debug>>:-O0>
142142
)
143+
# https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2024-1/standard-semantics.html
143144
endif()

0 commit comments

Comments
 (0)