Skip to content

Commit

Permalink
shared libs off for csharp
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Jan 2, 2025
1 parent ca1b739 commit e4b4bf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ message(STATUS "Build Fortran: ${FORTRAN}")
option(CSHARP "Build CSharp interface" OFF)
message(STATUS "Build CSharp: ${CSHARP}")

if (FORTRAN OR CSHARP)
if (FORTRAN)
set(BUILD_SHARED_LIBS ON)
endif()

Expand Down Expand Up @@ -400,6 +400,7 @@ if(NOT FAST_BUILD OR CSHARP)
if(CMAKE_CSharp_COMPILER)
enable_language(CSharp)
set(CSHARP_FOUND ON)
set(BUILD_SHARED_LIBS OFF)
else()
set(CSHARP_FOUND OFF)
endif(CMAKE_CSharp_COMPILER)
Expand Down

0 comments on commit e4b4bf5

Please sign in to comment.