patch-mpcdec_CMakeLists_txt 708 B

1234567891011121314151617181920
  1. $OpenBSD: patch-mpcdec_CMakeLists_txt,v 1.1 2013/06/23 14:30:52 dcoppa Exp $
  2. --- mpcdec/CMakeLists.txt.orig Sat Aug 21 17:55:01 2010
  3. +++ mpcdec/CMakeLists.txt Sun Jun 23 16:07:24 2013
  4. @@ -17,11 +17,14 @@ target_link_libraries(mpcdec_cmd m)
  5. endif(NOT MSVC)
  6. target_link_libraries(mpcdec_cmd wavformat_static)
  7. +add_dependencies(mpcdec_cmd wavformat_static)
  8. if(SHARED)
  9. - target_link_libraries(mpcdec_cmd mpcdec)
  10. + target_link_libraries(mpcdec_cmd mpcdec_shared)
  11. + add_dependencies(mpcdec_cmd mpcdec_shared)
  12. else(SHARED)
  13. target_link_libraries(mpcdec_cmd mpcdec_static)
  14. + add_dependencies(mpcdec_cmd mpcdec_static)
  15. endif(SHARED)
  16. SET_TARGET_PROPERTIES(mpcdec_cmd PROPERTIES OUTPUT_NAME "mpcdec")