Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto-o committed Dec 16, 2024
1 parent 077c562 commit 721ff89
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,17 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -qopenmp")
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")

if(CMAKE_BUILD_TYPE MATCHES "Debug" and CMAKE_Fortran_COMPILER_ID MATCHES "IntelLLVM")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qiopenmp /Wno-debug-option-simd")
else()
if(CMAKE_Fortran_COMPILER_ID MATCHES "IntelLLVM")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qiopenmp")
else()
if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qiopenmp /Wno-debug-option-simd")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qiopenmp")
endif()
endif()


else()
message(FATAL_ERROR "Unrecognized system name")
endif()
Expand Down

0 comments on commit 721ff89

Please sign in to comment.