Skip to content

Commit

Permalink
Set WINDOWS_EXPORT_ALL_SYMBOLS property for for shared flangrti target.
Browse files Browse the repository at this point in the history
This works around the issue with missing __declspec(dllexport/dllimport) declerations in the source files.
  • Loading branch information
Albert Ziegenhagel committed Oct 25, 2017
1 parent acc48f6 commit 451499f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/flangrti/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ set_target_properties(flangrti_shared flangrti_static
if (NOT MSVC)
target_compile_options(flangrti_static PRIVATE -fPIC)
target_compile_options(flangrti_shared PRIVATE -fPIC)
else()
set_target_properties(flangrti_shared PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
endif()

target_compile_options(flangrti_static PUBLIC $<$<COMPILE_LANGUAGE:Fortran>:-Mreentrant>)
Expand Down

0 comments on commit 451499f

Please sign in to comment.