Skip to content

Commit

Permalink
Update compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Oct 30, 2019
1 parent a8ada99 commit 982d276
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ set(CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/ftnmods")
# Sets the optimization level to -O2 and includes -g
set(CMAKE_BUILD_TYPE "RelWithDebInfo")

# Enable .dll export
if(APPLE OR UNIX)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DIMPLICIT_DLLEXPORT")
endif()

set(SOURCES
src/Constants.f90
src/ControllerBlocks.f90
src/Controllers.f90
src/DISCON.f90
src/DISCON.F90
src/ROSCO_Types.f90
src/Filters.f90
src/Functions.f90
Expand Down
2 changes: 2 additions & 0 deletions src/DISCON.f90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ SUBROUTINE DISCON(avrSWAP, aviFAIL, accINFILE, avcOUTNAME, avcMSG) BIND (C, NAME
USE :: Functions

IMPLICIT NONE
! Enable .dll export
#ifndef IMPLICIT_DLLEXPORT
!DEC$ ATTRIBUTES DLLEXPORT :: DISCON
!GCC$ ATTRIBUTES DLLEXPORT :: DISCON
#endif

Expand Down

0 comments on commit 982d276

Please sign in to comment.