diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b812b6ec2..175f1738e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -404,7 +404,9 @@ if(NOT FAST_BUILD OR CSHARP) if(CMAKE_CSharp_COMPILER) enable_language(CSharp) set(CSHARP_FOUND ON) - set(BUILD_SHARED_LIBS OFF) + if (NOT WIN32) + set(BUILD_SHARED_LIBS OFF) + endif() else() set(CSHARP_FOUND OFF) endif(CMAKE_CSharp_COMPILER)