Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1KB

  1. diff --git a/cmake-proxies/cmake-modules/CopyLibs.cmake b/cmake-proxies/cmake-modules/CopyLibs.cmake
  2. index ddb5d9a..eb00020 100644
  3. --- a/cmake-proxies/cmake-modules/CopyLibs.cmake
  4. +++ b/cmake-proxies/cmake-modules/CopyLibs.cmake
  5. @@ -95,7 +95,8 @@ function( gather_libs src )
  6. set( postcmds ${postcmds} PARENT_SCOPE )
  7. endfunction()
  8. -gather_libs( "${SRC}" )
  9. +set( libs "${WXWIN}/wxmsw313u_gcc_x64_custom.dll" )
  10. +set( postcmds "" )
  11. list( REMOVE_DUPLICATES libs )
  12. diff --git a/cmake-proxies/cmake-modules/FindwxWidgets.cmake b/cmake-proxies/cmake-modules/FindwxWidgets.cmake
  13. index cb2f6f6..b5c88a6 100644
  14. --- a/cmake-proxies/cmake-modules/FindwxWidgets.cmake
  15. +++ b/cmake-proxies/cmake-modules/FindwxWidgets.cmake
  16. @@ -217,15 +217,7 @@ endif()
  17. if(wxWidgets_FIND_STYLE STREQUAL "win32")
  18. # Useful common wx libs needed by almost all components.
  19. set(wxWidgets_COMMON_LIBRARIES png tiff jpeg zlib regex expat)
  20. -
  21. - # DEPRECATED: Use find_package(wxWidgets COMPONENTS mono) instead.
  22. - if(NOT wxWidgets_FIND_COMPONENTS)
  23. - if(wxWidgets_USE_MONOLITHIC)
  24. - set(wxWidgets_FIND_COMPONENTS mono)
  25. - else()
  26. - set(wxWidgets_FIND_COMPONENTS core base) # this is default
  27. - endif()
  28. - endif()
  29. + set(wxWidgets_FIND_COMPONENTS mono)
  30. # Add the common (usually required libs) unless
  31. # wxWidgets_EXCLUDE_COMMON_LIBRARIES has been set.
  32. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
  33. index 79e8f3c..e4c0f62 100644
  34. --- a/src/CMakeLists.txt
  35. +++ b/src/CMakeLists.txt
  36. @@ -1120,14 +1120,16 @@ if( CMAKE_SYSTEM_NAME MATCHES "Windows" )
  37. POST_BUILD
  38. )
  39. - # Copy the VC runtime libraries as well
  40. - add_custom_command(
  41. - TARGET
  42. - ${TARGET}
  43. - COMMAND
  44. - ${CMAKE_COMMAND} -E copy ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} ${_DEST}
  45. - POST_BUILD
  46. - )
  47. + if(MSVC)
  48. + # Copy the VC runtime libraries as well
  49. + add_custom_command(
  50. + TARGET
  51. + ${TARGET}
  52. + COMMAND
  53. + ${CMAKE_COMMAND} -E copy ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} ${_DEST}
  54. + POST_BUILD
  55. + )
  56. + endif(MSVC)
  57. elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
  58. # Bug 2400 workaround
  59. #