cmake-mingw.patch 651 B

123456789101112131415161718192021
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 851b3cc9..cc2bc97f 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -3221,13 +3221,16 @@ if(WIN32)
  6. # For compatibility, build the shared library without the "lib" prefix on
  7. # MinGW as well.
  8. #
  9. + if(BUILD_SHARED_LIBS)
  10. set_target_properties(${LIBRARY_NAME} PROPERTIES
  11. PREFIX ""
  12. OUTPUT_NAME "${LIBRARY_NAME}"
  13. )
  14. + else()
  15. set_target_properties(${LIBRARY_NAME}_static PROPERTIES
  16. OUTPUT_NAME "${LIBRARY_NAME}"
  17. )
  18. + endif()
  19. endif()
  20. else(WIN32) # UN*X
  21. if(BUILD_SHARED_LIBS)