Skip to content

Commit

Permalink
oneAPI: option syntax simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Feb 3, 2025
1 parent 236eccc commit b7321ce
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmake/compilers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ add_compile_options(
# this oneAPI flag needs to be applied EVERYWHERE incl. submodule projects
# or runtime errors / weird behavior with unresolved procedures that actually exist.
# -standard-semantics is no good because it breaks linkage within oneAPI itself e.g. oneMPI library!
if(WIN32)
add_compile_options("$<$<COMPILE_LANG_AND_ID:Fortran,IntelLLVM>:/fpscomp:logicals>")
else()
add_compile_options("$<$<COMPILE_LANG_AND_ID:Fortran,IntelLLVM>:-fpscomp;logicals>")
endif()
add_compile_options("$<$<COMPILE_LANG_AND_ID:Fortran,IntelLLVM>:$<IF:$<BOOL:${WIN32}>,/fpscomp:logicals,-fpscomp;logicals>>")

if(intsize64)
add_compile_options(
Expand Down

0 comments on commit b7321ce

Please sign in to comment.