Skip to content

Commit

Permalink
Build static library on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Dec 12, 2024
1 parent afb9233 commit 07ca9ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GIPL/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
set(pkg_name gipl_model)

add_library(gipl OBJECT gipl.f90)
add_library(${bmigipl_lib} SHARED bmigiplf.f90 bmi.f90 $<TARGET_OBJECTS:gipl>)
if(WIN32)
add_library(${bmigipl_lib} STATIC bmigiplf.f90 bmi.f90 $<TARGET_OBJECTS:gipl>)
else()
add_library(${bmigipl_lib} SHARED bmigiplf.f90 bmi.f90 $<TARGET_OBJECTS:gipl>)
endif()

add_executable(run_${pkg_name} main.f90 $<TARGET_OBJECTS:gipl>)
add_executable(run_bmi${pkg_name} bmi_main.f90)
Expand Down

0 comments on commit 07ca9ef

Please sign in to comment.