diff --git a/CMakeLists.txt b/CMakeLists.txt index aa87db6..faf7ac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -938,7 +938,7 @@ install( RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -if (MSVC) +if (MSVC AND BUILD_SHARED_LIBS) install(FILES $ DESTINATION bin OPTIONAL) endif() install(