Skip to content

Commit

Permalink
Remove bmi.f90 source file from build
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Jan 22, 2025
1 parent cada341 commit ed0130b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# GIPL

cmake_minimum_required(VERSION 3.12)

project(bmigipl Fortran)
project(bmigipl
LANGUAGES Fortran
)

include(GNUInstallDirs)

Expand Down
4 changes: 2 additions & 2 deletions GIPL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ set(pkg_name gipl_model)

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

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

0 comments on commit ed0130b

Please sign in to comment.