From e4b4bf553e3edd277fd0d6ea8027672b969844a8 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Thu, 2 Jan 2025 13:12:26 +0000 Subject: [PATCH] shared libs off for csharp --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc485c9471..9fb52f9961 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() @@ -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)