Skip to content

Commit

Permalink
Revert windows cmake stuff to develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Dec 14, 2021
1 parent 8548f02 commit 39df122
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions ROSCO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ if (${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU")
elseif (APPLE OR UNIX OR CYGWIN)
set(NWTC_SYS_FILE src/SysFiles/SysGnuLinux.f90)
endif ()
elseif (${CMAKE_Fortran_COMPILER_ID} MATCHES "^Intel")
if (APPLE OR UNIX)
set(NWTC_SYS_FILE src/SysFiles/SysIFL.f90)
elseif (WIN32)
set(NWTC_SYS_FILE src/SysFiles/SysIVF.f90)
endif (APPLE OR UNIX)
endif ()
elseif (WIN32)
if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
# Ensure static linking to avoid requiring Fortran runtime dependencies
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-line-length-0 -static-libgcc -static-libgfortran -static -fdefault-real-8 -fdefault-double-8 -cpp")
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -libs:static -free -static -fpp -real-size:64 -double-size:64")
# set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} /ffree-line-length-0 /static-libgcc /static-libgfortran /static /fdefault-real-8 /fdefault-double-8 /cpp")
endif()
endif()



if (NWTC_SYS_FILE)
message("-- Setting system file as: ${NWTC_SYS_FILE}")
Expand Down

0 comments on commit 39df122

Please sign in to comment.